From a75191bbe659a12f7f9882f7454d254dff547dd4 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Wed, 29 Nov 2017 10:46:48 +0100 Subject: [PATCH] Moved the print of an error so the program does not abort before it is printed --- src/libecoPCR/ecoMalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libecoPCR/ecoMalloc.c b/src/libecoPCR/ecoMalloc.c index d44ce10..5796d7e 100644 --- a/src/libecoPCR/ecoMalloc.c +++ b/src/libecoPCR/ecoMalloc.c @@ -59,8 +59,8 @@ void *eco_realloc(void *chunk, if (!newchunk) { + fprintf(stderr,"Requested memory : %d\n",newsize); ecoError(ECO_MEM_ERROR,error_message,filename,line); - fprintf(stderr,"Requested memory : %d\n",newsize); } if (!chunk) eco_chunk_malloc++;