From c9346e19b25f9abc7630200d7d180a20224a956c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 21 Oct 2014 15:51:53 +0800 Subject: [PATCH] greybus: battery-gb.c: fix memory leak found by Viresh Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/battery-gb.c | 1 + 1 file changed, 1 insertion(+) 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; }