Skip to content

Commit

Permalink
[PATCH] ppc64: lparconfig.c memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joel Schopp authored and Paul Mackerras committed Aug 30, 2005
1 parent 5ff98ae commit 597f95e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/ppc64/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 597f95e

Please sign in to comment.