[PATCH] ppc64: lparconfig.c memory leak
This patch fixes a rare memory leak found by Coverity. Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
5ff98ae18b
commit
597f95e2bf
|
@ -273,6 +273,7 @@ static void parse_system_parameter_string(struct seq_file *m)
|
||||||
if (!workbuffer) {
|
if (!workbuffer) {
|
||||||
printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
|
printk(KERN_ERR "%s %s kmalloc failure at line %d \n",
|
||||||
__FILE__, __FUNCTION__, __LINE__);
|
__FILE__, __FUNCTION__, __LINE__);
|
||||||
|
kfree(local_buffer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef LPARCFG_DEBUG
|
#ifdef LPARCFG_DEBUG
|
||||||
|
|
Loading…
Reference in a new issue