]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - sound/synth/emux/soundfont.c
ALSA: synth: emux: soundfont.c: Cleaning up memory leak
[mirror_ubuntu-zesty-kernel.git] / sound / synth / emux / soundfont.c
index 1137b85c36e6d5d9e9c103810975a6f7c79d539f..78683b2064f709a55bf0dff1b2edba002158d114 100644 (file)
@@ -1021,6 +1021,7 @@ load_guspatch(struct snd_sf_list *sflist, const char __user *data,
                         data, count);
                if (rc < 0) {
                        sf_sample_delete(sflist, sf, smp);
+                       kfree(zone);
                        return rc;
                }
                /* memory offset is updated after */