libmallocwrap: free: don't return a value in a void function
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Sun, 28 Jun 2009 01:03:15 +0000 (21:03 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Sun, 28 Jun 2009 01:03:15 +0000 (21:03 -0400)
libmallocwrap/mallocwrap.c

index 825ad95ddbc98389acf394e725e763350093656a..d505b6773536d7d827f7b8e554136ec5900b6801 100644 (file)
@@ -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
This page took 0.030485 seconds and 4 git commands to generate.