Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
da59459399d16570b0ac4184d370634d74960f05
/
.
/
memcheck
/
tests
/
trivialleak.c
blob: 7ffcb8735c9848ffe3844a10a99189901d6638f6 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
static
void
test
()
{
void
*
leak __attribute__
((
unused
));
int
i
;
for
(
i
=
0
;
i
<
1000
;
i
++)
leak
=
(
void
*)
malloc
(
1
);
}
int
main
()
{
test
();
return
0
;
}