Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
68e281aa3223dba2f45810d55719180588ad8505
/
.
/
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
;
}