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:
parent
f96099b4c5
commit
4e6afaa76f
6
pahole.c
6
pahole.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue