ref: a30b2a6ffa5f86603b2e5b61d0177463088272d1
parent: 46e7e4f5b93927f2f6306c8d1589f118f964787a
parent: 59afe93d2fa404fab08322c0b93aeda3d02d1494
author: Chris Moeller <kode54@gmail.com>
date: Mon Aug 10 17:11:28 EDT 2015
Merge pull request #14 from cspiegel/memory-leaks Fix memory leaks.
--- a/dumb/src/it/readptm.c
+++ b/dumb/src/it/readptm.c
@@ -439,6 +439,7 @@
}
if (dumbfile_seek(f, 352, DFS_SEEK_SET)) {
+ free(component);
_dumb_it_unload_sigdata(sigdata);
return NULL;
}
@@ -451,6 +452,7 @@
}
if (dumbfile_seek(f, 608, DFS_SEEK_SET)) {
+ free(component);
_dumb_it_unload_sigdata(sigdata);
return NULL;
}
@@ -457,6 +459,7 @@
for (n = 0; n < sigdata->n_samples; n++) {
if (it_ptm_read_sample_header(&sigdata->sample[n], &component[n_components].offset, f)) {
+ free(component);
_dumb_it_unload_sigdata(sigdata);
return NULL;
}