Skip to content

Commit

Permalink
[ALSA] Fix memory leak in sound/isa/es18xx.c
Browse files Browse the repository at this point in the history
Fixed a memory leak in the error patch.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Eric Sesterhenn authored and Jaroslav Kysela committed Oct 6, 2006
1 parent f3838ba commit 92b93d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/isa/es18xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,7 @@ static int __devinit snd_audiodrive_pnpc(int dev, struct snd_audiodrive *acard,
}
/* Control port initialization */
if (pnp_activate_dev(acard->devc) < 0) {
kfree(cfg);
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
return -EAGAIN;
}
Expand Down

0 comments on commit 92b93d3

Please sign in to comment.