diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 15:18:10 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-08-11 17:14:58 +0200 |
commit | 5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f (patch) | |
tree | 7e83ded29f5a7692b0989cd76e5ddda619dea1f4 /lib/ferr.c | |
parent | ripd: re-add check for rip_create fail (diff) | |
download | frr-5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f.tar.xz frr-5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f.zip |
lib: Remove memory check test
Found a missed memory check test that can just be removed.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/ferr.c')
-rw-r--r-- | lib/ferr.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ferr.c b/lib/ferr.c index d315cf843..45574520a 100644 --- a/lib/ferr.c +++ b/lib/ferr.c @@ -70,13 +70,6 @@ static ferr_r ferr_set_va(const char *file, int line, const char *func, if (!error) { error = XCALLOC(MTYPE_ERRINFO, sizeof(*error)); - if (!error) { - /* we're screwed */ - zlog_err("out of memory while allocating error info"); - raise(SIGSEGV); - abort(); /* raise() can return, but raise(SIGSEGV) shall - not */ - } pthread_setspecific(errkey, error); } |