Skip to content

Commit

Permalink
[ALSA] Fix memory leak
Browse files Browse the repository at this point in the history
ALSA sequencer
Fixed memory leak by the last change of stack reduction.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 29, 2005
1 parent a214267 commit 51f633d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/core/seq/seq_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51f633d

Please sign in to comment.