From: Greg Kroah-Hartman Date: Tue, 21 Oct 2014 07:51:53 +0000 (+0800) Subject: greybus: battery-gb.c: fix memory leak found by Viresh X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9346e19b25f9abc7630200d7d180a20224a956c;p=openwrt%2Fstaging%2Fblogic.git greybus: battery-gb.c: fix memory leak found by Viresh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/battery-gb.c b/drivers/staging/greybus/battery-gb.c index 03c16f7a5301..fd2b86e5579c 100644 --- 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; }