diff options
-rw-r--r-- | sound/synth/emux/soundfont.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/synth/emux/soundfont.c b/sound/synth/emux/soundfont.c index 1137b85c36e6..78683b2064f7 100644 --- a/sound/synth/emux/soundfont.c +++ b/sound/synth/emux/soundfont.c | |||
@@ -1021,6 +1021,7 @@ load_guspatch(struct snd_sf_list *sflist, const char __user *data, | |||
1021 | data, count); | 1021 | data, count); |
1022 | if (rc < 0) { | 1022 | if (rc < 0) { |
1023 | sf_sample_delete(sflist, sf, smp); | 1023 | sf_sample_delete(sflist, sf, smp); |
1024 | kfree(zone); | ||
1024 | return rc; | 1025 | return rc; |
1025 | } | 1026 | } |
1026 | /* memory offset is updated after */ | 1027 | /* memory offset is updated after */ |