summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-03-30 11:49:06 (GMT)
committerJaroslav Kysela <perex@suse.cz>2005-05-29 07:00:37 (GMT)
commit51f633dada113ef724a145bb5b33ec77d1b092f6 (patch)
tree12f83d7c673ec3102bd3c93e21bdb043c9dd5db8 /sound/core
parenta2142674b958d89e0806228a5f6cd22ec379d61d (diff)
downloadlinux-fsl-qoriq-51f633dada113ef724a145bb5b33ec77d1b092f6.tar.xz
[ALSA] Fix memory leak
ALSA sequencer Fixed memory leak by the last change of stack reduction. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/seq/seq_midi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c
index 18247db..57be915 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(&register_mutex);
+ kfree(info);
+ kfree(port);
return 0; /* success */
__nomem: