X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fleak-checker.c;h=1fd3d5b5fb656b36cabdf7417ecf477d86a82738;hb=21f045ac7eb2ecdd3bab919c9fc9ebb7dde84dd7;hp=8b781824417212c08b79b9851824566dbcce3748;hpb=d98e60075528c3065ad453f7add4b30f22edcde3;p=openvswitch diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 8b781824..1fd3d5b5 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. @@ -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(); }