projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor/enhance libustcomm
[lttng-ust.git]
/
libmallocwrap
/
mallocwrap.c
diff --git
a/libmallocwrap/mallocwrap.c
b/libmallocwrap/mallocwrap.c
index 825ad95ddbc98389acf394e725e763350093656a..be1f39ed3cb4bda8c1a2bb7381e127f188a6ed91 100644
(file)
--- a/
libmallocwrap/mallocwrap.c
+++ b/
libmallocwrap/mallocwrap.c
@@
-20,7
+20,7
@@
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
-#include
"marker.h"
+#include
<ust/marker.h>
#if 0
INTERCEPT_PROTOTYPE(void, malloc, size_t size)
#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");
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);
}
}
trace_mark(ust, free, "%p", ptr);
-
return
plibc_free(ptr);
+ plibc_free(ptr);
}
MARKER_LIB
}
MARKER_LIB
This page took
0.024225 seconds
and
4
git commands to generate.