repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
wrapmalloc.c
blob
2307e77df8921dcf1000d52015473f01ba19bdb6
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
/* Test that a program that has malloc/free interposed in a shared
5
library is also intercepted. */
6
7
int
main
(
void
)
8
{
9
printf
(
"start
\n
"
);
10
void
*
p
=
malloc
(
1024
);
11
free
(
p
);
12
printf
(
"done
\n
"
);
13
return
0
;
14
}