[ALSA] Fix memory leak
authorTakashi Iwai <tiwai@suse.de>
Wed, 30 Mar 2005 11:49:06 +0000 (13:49 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 07:00:37 +0000 (09:00 +0200)
ALSA sequencer
Fixed memory leak by the last change of stack reduction.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_midi.c

index 18247db45db65d501040eacb4dcf74c2a6b76e6e..57be9155eb622854f97c4f85cacc1c3a259fb566 100644 (file)
@@ -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: