]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/host/atmel-mci.c
atmel-mci: Fix memory leak in atmci_regs_show
[linux-2.6-omap-h63xx.git] / drivers / mmc / host / atmel-mci.c
index 6de773d3a0cfde3d526f8dfdd2d41c9c3c7f56e9..becca914507020d412bd164dcf0286124a014782 100644 (file)
@@ -218,6 +218,8 @@ static int atmci_regs_show(struct seq_file *s, void *v)
        atmci_show_status_reg(s, "SR", buf[MCI_SR / 4]);
        atmci_show_status_reg(s, "IMR", buf[MCI_IMR / 4]);
 
+       kfree(buf);
+
        return 0;
 }