Prechádzať zdrojové kódy

[ALSA] Fix memory leak

ALSA sequencer
Fixed memory leak by the last change of stack reduction.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 20 rokov pred
rodič
commit
51f633dada
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      sound/core/seq/seq_midi.c

+ 2 - 0
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: