From 5cecdba9d1915d8eeb6d7c17dd4366a3f15d9f3f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 18 Jun 2018 09:18:10 -0400 Subject: [PATCH] lib: Remove memory check test Found a missed memory check test that can just be removed. Signed-off-by: Donald Sharp --- lib/ferr.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ferr.c b/lib/ferr.c index d315cf843c..45574520a5 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); }