Provide location in "attempt to free untracked memory" message

This commit is contained in:
Couriersud 2010-01-08 14:53:52 +00:00
parent 4f32209c06
commit a0a40f8815

View File

@ -151,7 +151,7 @@ void free_file_line(void *memory, const char *file, int line)
// warn about untracked frees
if (entry == NULL)
{
fprintf(stderr, "Error: attempt to free untracked memory!\n");
fprintf(stderr, "Error: attempt to free untracked memory in %s(%d)!\n", file, line);
osd_break_into_debugger("Error: attempt to free untracked memory");
return;
}