pahole: Don't delete everything at exit

Only when debugging leaks we need to be so judicious.

When not debugging we want to exit faster :-)

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-07-06 00:42:59 -03:00
parent f96099b4c5
commit 4e6afaa76f
1 changed files with 6 additions and 0 deletions

View File

@ -1226,11 +1226,17 @@ int main(int argc, char *argv[])
print_stats();
rc = EXIT_SUCCESS;
out_cus_delete:
#ifdef DEBUG_CHECK_LEAKS
cus__delete(cus);
structures__delete();
#endif
out_dwarves_exit:
#ifdef DEBUG_CHECK_LEAKS
dwarves__exit();
#endif
out:
#ifdef DEBUG_CHECK_LEAKS
strlist__delete(class_names);
#endif
return rc;
}