projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc66239
)
greybus: battery-gb.c: fix memory leak found by Viresh
author
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 21 Oct 2014 07:51:53 +0000
(15:51 +0800)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 21 Oct 2014 07:51:53 +0000
(15:51 +0800)
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/battery-gb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/battery-gb.c
b/drivers/staging/greybus/battery-gb.c
index 03c16f7a5301a1b2699ef84fc972698850707b38..fd2b86e5579cae10b64faaf9035fd79827455860 100644
(file)
--- a/
drivers/staging/greybus/battery-gb.c
+++ b/
drivers/staging/greybus/battery-gb.c
@@
-139,6
+139,7
@@
static int battery_operation(struct gb_battery *gb, int type,
}
out:
gb_operation_destroy(operation);
+ kfree(local_response);
return ret;
}