Skip to content

Commit

Permalink
ALSA: fix one memory leak in sound jack
Browse files Browse the repository at this point in the history
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Lu Guanqun authored and Takashi Iwai committed Feb 21, 2011
1 parent 8972495 commit eeda276
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ int snd_jack_new(struct snd_card *card, const char *id, int type,

fail_input:
input_free_device(jack->input_dev);
kfree(jack->id);
kfree(jack);
return err;
}
Expand Down

0 comments on commit eeda276

Please sign in to comment.