]> git.alsa-project.org Git - alsa-utils.git/commitdiff
fix amidi error handling
authorClemens Ladisch <clemens@ladisch.de>
Mon, 14 Mar 2005 15:11:45 +0000 (15:11 +0000)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 14 Mar 2005 15:11:45 +0000 (15:11 +0000)
Fix error handling when the input file cannot be loaded.

amidi/amidi.c

index 864d7c3d55d22863275f781f7fcaf7804e080268..1d5baf6f98cb25a81e18b234b4bec24dea79b69b 100644 (file)
@@ -245,6 +245,7 @@ static void load_file(void)
        goto _exit;
 _error:
        free(send_data);
+       send_data = NULL;
 _exit:
        close(fd);
 }