blob: b2ec94661847cbc93e77486c0ca62fe6584a4858 [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define SIZE 100
int main() {
if (fork()) {
int *a = (int *)malloc(sizeof(int) * SIZE);
int *b = (int *)malloc(sizeof(int) * SIZE);
int *c = (int *)malloc(sizeof(int) * SIZE);
free(a);
free(b);
free(c);
}
else {
execv("../alloctest/Debug/alloctest", NULL);
perror("execv");
}
return 0;
}