]> git.karo-electronics.de Git - linux-beck.git/commit
USB: core: Free the allocated memory before exiting on error
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 21 Nov 2012 05:31:19 +0000 (11:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:32:26 +0000 (13:32 -0800)
commitc058f7ab94143dfa2286e496019b7ad0b95502ac
tree22b177b561485b6e2dffac1227934061d862e84a
parent564e69893c63cefe4bcbdeda4f940bf68b6b4491
USB: core: Free the allocated memory before exiting on error

'new_interfaces' should be freed to avoid memory leak.

Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/message.c