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