X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fleak-checker.c;h=42b3818ab511f2a469b08c5145efc60e86938aa7;hb=c2b565b54e36bc33d0406afb225c9bf3d01405ef;hp=4ab55e59493f2303b279bfa45a3eaed57a1d5ad6;hpb=67a4917b07031b387beafaedce413b4207214059;p=openvswitch diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 4ab55e59..42b3818a 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -18,10 +18,10 @@ #include "leak-checker.h" #include #include "backtrace.h" - -#define THIS_MODULE VLM_leak_checker #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(leak_checker); + #ifndef HAVE_MALLOC_HOOKS void leak_checker_start(const char *file_name OVS_UNUSED) @@ -216,11 +216,10 @@ hook_free(void *p, const void *caller OVS_UNUSED) } set_hooks(&libc_hooks); + log_callers("free(%p)", p); free(p); get_hooks(&libc_hooks); - log_callers("free(%p)", p); - reset_hooks(); }