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; }