Fix a mem leak
This commit is contained in:
parent
2cb080285b
commit
7252cb8b51
@ -555,6 +555,7 @@ drmr_sample* load_hydrogen_kit(char *path, double rate, int *num_samples) {
|
||||
i++;
|
||||
cur_i = cur_i->next;
|
||||
}
|
||||
if (kit_info.name) free(kit_info.name);
|
||||
*num_samples = num_inst;
|
||||
return samples;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user