[ALSA] au88x0: mem leak fix in snd_vortex_create()
[cascardo/linux.git] / sound / pci / au88x0 / au88x0.c
index 5ec1b6f..f70286a 100644 (file)
@@ -232,6 +232,7 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip)
        pci_disable_device(chip->pci_dev);
        //FIXME: this not the right place to unregister the gameport
        vortex_gameport_unregister(chip);
+       kfree(chip);
        return err;
 }