Fix a mem leak

This commit is contained in:
Nick Lanham 2012-02-17 12:08:24 +01:00
parent 2cb080285b
commit 7252cb8b51

View File

@ -555,6 +555,7 @@ drmr_sample* load_hydrogen_kit(char *path, double rate, int *num_samples) {
i++; i++;
cur_i = cur_i->next; cur_i = cur_i->next;
} }
if (kit_info.name) free(kit_info.name);
*num_samples = num_inst; *num_samples = num_inst;
return samples; return samples;
} }