Messages in this thread Patch in this message |  | | | Subject | [PATCH 4/5] Fix memory leak in hiddev.c found by Stanford Checker | | Date | Fri, 19 Sep 2003 21:47:15 +0200 | | From | Vojtech Pavlik <> |
| |
You can pull this changeset from: bk://kernel.bkbits.net/vojtech/input
=================================================================== ChangeSet@1.1353, 2003-09-19 13:32:38+02:00, vojtech@suse.cz input: Fix memory leak in hiddev.c found by Stanford Checker.
hiddev.c | 1 + 1 files changed, 1 insertion(+) =================================================================== diff -Nru a/drivers/usb/input/hiddev.c b/drivers/usb/input/hiddev.c --- a/drivers/usb/input/hiddev.c Fri Sep 19 14:12:42 2003 +++ b/drivers/usb/input/hiddev.c Fri Sep 19 14:12:42 2003 @@ -727,6 +727,7 @@ retval = usb_register_dev(&hiddev->intf, &hiddev_class); if (retval) { err("Not able to get a minor for this device."); + kfree(hiddev); return -1; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |