projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing licence headers
[ust.git]
/
libmallocwrap
/
mallocwrap.c
diff --git
a/libmallocwrap/mallocwrap.c
b/libmallocwrap/mallocwrap.c
index 825ad95ddbc98389acf394e725e763350093656a..f5d5ce38b669f7184d7a24e18201fb0fb440e93d 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, "
ptr
%p", ptr);
-
return
plibc_free(ptr);
+ plibc_free(ptr);
}
MARKER_LIB
}
MARKER_LIB
This page took
0.032251 seconds
and
4
git commands to generate.