Moved the print of an error so the program does not abort before it is
printed
This commit is contained in:
@ -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++;
|
||||
|
Reference in New Issue
Block a user