Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62270119 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Kevin Hilman
Browse files

arm: mach-omap2: voltage: debugfs: fix memory leak



The temporary string holding the directory name to be created should
be released.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 617fcc98
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -471,6 +471,7 @@ static void __init vdd_debugfs_init(struct omap_vdd_info *vdd)
	strcat(name, vdd->voltdm.name);

	vdd->debug_dir = debugfs_create_dir(name, voltage_dir);
	kfree(name);
	if (IS_ERR(vdd->debug_dir)) {
		pr_warning("%s: Unable to create debugfs directory for"
			" vdd_%s\n", __func__, vdd->voltdm.name);