fix amidi error handling

Fix error handling when the input file cannot be loaded.
This commit is contained in:
Clemens Ladisch 2005-03-14 15:11:45 +00:00
parent b1e13d251a
commit 44cb75c764

View file

@ -245,6 +245,7 @@ static void load_file(void)
goto _exit;
_error:
free(send_data);
send_data = NULL;
_exit:
close(fd);
}