Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
e15728c1b152b8f325183c4de9837b8a1ada00ff
/
.
/
memcheck
/
tests
/
badfree.c
blob: 3a225677647084783b01a61612838550582f7e9b [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
int
main
(
void
)
{
void
*
p
=
(
void
*)
0x87654321
;
int
q
[]
=
{
1
,
2
,
3
};
/* Free a pointer to Never-Never Land */
free
(
p
);
/* Free a pointer to a stack block */
free
(
q
);
return
0
;
}