X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fleak-checker.c;h=1fd3d5b5fb656b36cabdf7417ecf477d86a82738;hb=bc098fda3387245f4e273b869e8b9e7d312f2004;hp=28beb0b3cdebc4caadc00e71a2b13c9a8b80cd68;hpb=5136ce492c414f377f7be9ae32b259abb9f76580;p=sliver-openvswitch.git diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 28beb0b3c..1fd3d5b5f 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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(); }