]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Remove memory check test
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 18 Jun 2018 13:18:10 +0000 (09:18 -0400)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 11 Aug 2018 15:14:58 +0000 (17:14 +0200)
Found a missed memory check test that can just be removed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/ferr.c

index d315cf843c829100045a7e18d1feeea364d36af7..45574520a546227e61eb6153b30cdaeb5a48f9c2 100644 (file)
@@ -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);
        }