shithub: dumb

Download patch

ref: 5774c84dbedec2ce481ea5f4fcf05767c1b3a7da
parent: 31d20fd3fcc2c22648af93fff0c7d43c44706620
author: Chris Moeller <kode54@gmail.com>
date: Fri Aug 14 16:07:02 EDT 2015

Fixed another memory leak in an error handler

--- a/dumb/src/it/readxm.c
+++ b/dumb/src/it/readxm.c
@@ -1095,6 +1095,7 @@
 
 		sigdata->instrument = malloc(sigdata->n_instruments * sizeof(*sigdata->instrument));
 		if (!sigdata->instrument) {
+			free(roguebytes);
 			_dumb_it_unload_sigdata(sigdata);
 			return NULL;
 		}