From: Clemens Ladisch Date: Mon, 14 Mar 2005 15:11:45 +0000 (+0000) Subject: fix amidi error handling X-Git-Tag: v1.0.9rc2~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=44cb75c764a75ea1a73ffac5235142544ffbb2c4;p=alsa-utils.git fix amidi error handling Fix error handling when the input file cannot be loaded. --- 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); }