debian: Make openvswitch-switch depend on Python.
[sliver-openvswitch.git] / lib / leak-checker.c
index 28beb0b..42b3818 100644 (file)
@@ -20,7 +20,7 @@
 #include "backtrace.h"
 #include "vlog.h"
 
-VLOG_DEFINE_THIS_MODULE(leak_checker)
+VLOG_DEFINE_THIS_MODULE(leak_checker);
 
 #ifndef HAVE_MALLOC_HOOKS
 void
@@ -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();
 }