[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 18247db..57be915 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: