diff mbox

arm: mach-omap2: smartreflex: fix another memory leak

Message ID 1297083471-6341-1-git-send-email-aaro.koskinen@nokia.com (mailing list archive)
State Superseded
Delegated to: Kevin Hilman
Headers show

Commit Message

Koskinen, Aaro (Nokia - FI/Espoo) Feb. 7, 2011, 12:57 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 77ecebf..61aebed 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -942,6 +942,7 @@  static int __init omap_sr_probe(struct platform_device *pdev)
 		strcat(name, volt_name);
 		(void) debugfs_create_x32(name, S_IRUGO | S_IWUGO, nvalue_dir,
 				&(sr_info->nvalue_table[i].nvalue));
+		kfree(name);
 	}
 
 	return ret;