USB: fix memory leak in usbtmc
authorOliver Neukum <oliver@neukum.org>
Thu, 2 Jul 2009 14:41:39 +0000 (16:41 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:37 +0000 (15:16 -0700)
commitca157c4a51fa6209f28c316f4a63d594adb79518
tree68308852497bbf4154c2726a371531855db46842
parent45e83889eb291714d3a4727e98e2488074affbf8
USB: fix memory leak in usbtmc

If an error is returned kfree must also be called.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/usbtmc.c