Fixed another memory leak in an error handler

This commit is contained in:
Chris Moeller 2015-08-14 20:07:02 -07:00 committed by Randy Heit
parent 45e031170e
commit e5a4031a70

View file

@ -1197,6 +1197,7 @@ static DUMB_IT_SIGDATA *it_xm_load_sigdata(DUMBFILE *f, int * version)
sigdata->instrument = malloc(sigdata->n_instruments * sizeof(*sigdata->instrument));
if (!sigdata->instrument) {
free(roguebytes);
_dumb_it_unload_sigdata(sigdata);
return NULL;
}