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)
|
if (!newchunk)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr,"Requested memory : %d\n",newsize);
|
||||||
ecoError(ECO_MEM_ERROR,error_message,filename,line);
|
ecoError(ECO_MEM_ERROR,error_message,filename,line);
|
||||||
fprintf(stderr,"Requested memory : %d\n",newsize);
|
|
||||||
}
|
}
|
||||||
if (!chunk)
|
if (!chunk)
|
||||||
eco_chunk_malloc++;
|
eco_chunk_malloc++;
|
||||||
|
Reference in New Issue
Block a user