X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libmallocwrap%2Fmallocwrap.c;h=be1f39ed3cb4bda8c1a2bb7381e127f188a6ed91;hb=8c98245fd779d9aa1ae9b33524bc504f91d5dcae;hp=825ad95ddbc98389acf394e725e763350093656a;hpb=c39c72ee5890c7727ae2697f321ba1b3d6c862f5;p=ust.git diff --git a/libmallocwrap/mallocwrap.c b/libmallocwrap/mallocwrap.c index 825ad95..be1f39e 100644 --- a/libmallocwrap/mallocwrap.c +++ b/libmallocwrap/mallocwrap.c @@ -20,7 +20,7 @@ #include #include -#include "marker.h" +#include #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