From 606bdf29e00912009f67708dae20dc62e2c470f8 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 15 Jun 2020 17:57:12 -0700 Subject: [PATCH] remove some now-redundant error handling from a call to N_NEW The N_NEW wrapper now exits on allocation failure, rendering this code path redundant. --- lib/dotgen/decomp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/dotgen/decomp.c b/lib/dotgen/decomp.c index 505bac002..7af7233a9 100644 --- a/lib/dotgen/decomp.c +++ b/lib/dotgen/decomp.c @@ -102,9 +102,6 @@ static void push(stk_t* sp, node_t * np) bp->prev = sp->curblk; bp->next = NULL; bp->data = N_NEW(BIGBUF, Agnode_t *); - if (bp->data == 0) { - agerr(AGERR, "dot: Out of memory\n"); - } bp->endp = bp->data + BIGBUF; sp->curblk->next = bp; } -- 2.40.0