Moved the print of an error so the program does not abort before it is

printed
This commit is contained in:
Celine Mercier
2017-11-29 10:46:48 +01:00
parent 3cfbf8ba42
commit a75191bbe6

View File

@ -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++;