usbip/userspace/libsrc/names.c: memory leak
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 28 Jan 2014 20:16:46 +0000 (21:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 19:08:46 +0000 (11:08 -0800)
commit2a7470d9ffe506ff895f4a27dcf3840cb3ea097f
treeacb64e430cf418eaca64786f63f373802341ca3c
parent54de9af9f0d7a91e898b6e02199be16dc26a4870
usbip/userspace/libsrc/names.c: memory leak

revised patch

p is freed if NULL.
p is leaked if second calloc fails.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/names.c