Fix memory leak in unix/main.c