Move immediate.h, marker.h and tracepoint.h to include/ust/
[ust.git] / libmallocwrap / mallocwrap.c
index 825ad95ddbc98389acf394e725e763350093656a..be1f39ed3cb4bda8c1a2bb7381e127f188a6ed91 100644 (file)
@@ -20,7 +20,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 
-#include "marker.h"
+#include <ust/marker.h>
 
 #if 0
 INTERCEPT_PROTOTYPE(void, malloc, size_t size)
@@ -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.022706 seconds and 4 git commands to generate.