diff --git a/amidi/amidi.c b/amidi/amidi.c index 864d7c3..1d5baf6 100644 --- a/amidi/amidi.c +++ b/amidi/amidi.c @@ -245,6 +245,7 @@ static void load_file(void) goto _exit; _error: free(send_data); + send_data = NULL; _exit: close(fd); }