mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
19 lines
250 B
C
19 lines
250 B
C
|
|
|
|
#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;
|
|
}
|