mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
31 lines
243 B
C
31 lines
243 B
C
|
|
#include <stdlib.h>
|
|
|
|
void ddd ( char* x )
|
|
{
|
|
free(x);
|
|
free(x);
|
|
}
|
|
|
|
void ccc (char* x)
|
|
{
|
|
ddd(x);
|
|
}
|
|
|
|
void bbb (char* x)
|
|
{
|
|
ccc(x);
|
|
}
|
|
|
|
void aaa (char* x)
|
|
{
|
|
bbb(x);
|
|
}
|
|
|
|
int main ( void )
|
|
{
|
|
char* x = malloc(10);
|
|
aaa(x);
|
|
return 0;
|
|
}
|