From: Joel Schopp Date: Fri, 12 Aug 2005 19:34:58 +0000 (-0500) Subject: [PATCH] ppc64: lparconfig.c memory leak X-Git-Tag: v2.6.14-rc1~1034^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=597f95e2bfbe9b83ed8b0761ebf4e7d55fd4df17;p=linux-2.6-omap-h63xx.git [PATCH] ppc64: lparconfig.c memory leak This patch fixes a rare memory leak found by Coverity. Signed-off-by: Joel Schopp Signed-off-by: Paul Mackerras --- diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c index 9d034ff062b..edad361a8db 100644 --- a/arch/ppc64/kernel/lparcfg.c +++ b/arch/ppc64/kernel/lparcfg.c @@ -273,6 +273,7 @@ static void parse_system_parameter_string(struct seq_file *m) if (!workbuffer) { printk(KERN_ERR "%s %s kmalloc failure at line %d \n", __FILE__, __FUNCTION__, __LINE__); + kfree(local_buffer); return; } #ifdef LPARCFG_DEBUG