From: Pierre-Marc Fournier Date: Sun, 28 Jun 2009 01:03:15 +0000 (-0400) Subject: libmallocwrap: free: don't return a value in a void function X-Git-Tag: v0.1~179 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eb0f0951c8ed30978deef70b326b24eb672a28cf;p=ust.git libmallocwrap: free: don't return a value in a void function --- diff --git a/libmallocwrap/mallocwrap.c b/libmallocwrap/mallocwrap.c index 825ad95..d505b67 100644 --- a/libmallocwrap/mallocwrap.c +++ b/libmallocwrap/mallocwrap.c @@ -88,13 +88,13 @@ void free(void *ptr) plibc_free = dlsym(RTLD_NEXT, "free"); if(plibc_free == NULL) { fprintf(stderr, "mallocwrap: unable to find free\n"); - return NULL; + return; } } trace_mark(ust, free, "%p", ptr); - return plibc_free(ptr); + plibc_free(ptr); } MARKER_LIB