From 44cb75c764a75ea1a73ffac5235142544ffbb2c4 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 14 Mar 2005 15:11:45 +0000 Subject: [PATCH] fix amidi error handling Fix error handling when the input file cannot be loaded. --- amidi/amidi.c | 1 + 1 file changed, 1 insertion(+) 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); }