lkml.org 
[lkml]   [2003]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 4/5] Fix memory leak in hiddev.c found by Stanford Checker
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:0.020 / U:31.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site