View Single Post
Old 07 January 2012, 03:54   #13
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Never seen that before, but one cause could be that you may be freeing the wrong memory; realloc() returns a new pointer which you must always accept, because there's no guarantee that the new block will start at the same address.

(also, if you want to be really compliant then you should include stdlib.h since that's where the memory allocation functions are declared)
Leffmann is offline  
 
Page generated in 0.07623 seconds with 11 queries