In my current program, I'm using two malloced arrays:
When I free check_dir, it works properly, but when I try to free check_start, I get the following error message:Code:check_start = malloc( sizeof( int ) * num_checks ); assert( check_start != NULL ); check_dir = malloc( sizeof( int ) * num_checks ); assert( check_dir != NULL );
I've checked, and check_start is still pointing to the same address that it was when it was malloced.Code:free(): invalid pointer 0x804a8d0!



LinkBack URL
About LinkBacks


