This commit is contained in:
Yorick Barbanneau 2023-04-17 23:40:08 +02:00
parent 4296f3a394
commit 553cdc440c
24 changed files with 919 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#include <stdlib.h>
#include <stdio.h>
static char *f(void) {
char *c = malloc(10);
char *d = malloc(20);
c[0] = 0;
d[0] = 0;
return c;
}
static void g(void) {
char *e = f();
printf("%p\n", e);
}
static void h(void) {
g();
}
int main(void) {
h();
return 0;
}