free_model(NULL); returns instead of segfault