From: Takashi Iwai Date: Wed, 30 Mar 2005 11:49:06 +0000 (+0200) Subject: [ALSA] Fix memory leak X-Git-Tag: v2.6.13-rc1~68^2~721 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51f633dada113ef724a145bb5b33ec77d1b092f6;p=linux-2.6 [ALSA] Fix memory leak ALSA sequencer Fixed memory leak by the last change of stack reduction. Signed-off-by: Takashi Iwai --- diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 18247db45d..57be9155eb 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c @@ -414,6 +414,8 @@ snd_seq_midisynth_register_port(snd_seq_device_t *dev) if (newclient) synths[card->number] = client; up(®ister_mutex); + kfree(info); + kfree(port); return 0; /* success */ __nomem: