auxdisplay: hd44780: Fix memory leak on ->remove()
[linux-2.6-microblaze.git] / drivers / auxdisplay / hd44780.c
index 9ad93ea..3cde351 100644 (file)
@@ -280,6 +280,8 @@ static int hd44780_remove(struct platform_device *pdev)
        struct charlcd *lcd = platform_get_drvdata(pdev);
 
        charlcd_unregister(lcd);
+
+       kfree(lcd);
        return 0;
 }