Commit dccbcfc5 authored by Juergen Kosel's avatar Juergen Kosel

Report to trace if free(NULL) is called, which was not expected before

Signed-off-by: 's avatarJuergen Kosel <juergen.kosel@softing.com>
parent e5daa547
......@@ -254,6 +254,10 @@ void myfree(char* file, int line, void* p)
free(((int*)p)-1);
Thread_unlock_mutex(heap_mutex);
}
else
{
Log(LOG_ERROR, -1, "Call of free(NULL) in %s,%d",file,line);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment