Commit c9346e19 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: battery-gb.c: fix memory leak found by Viresh

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent cc662399
...@@ -139,6 +139,7 @@ static int battery_operation(struct gb_battery *gb, int type, ...@@ -139,6 +139,7 @@ static int battery_operation(struct gb_battery *gb, int type,
} }
out: out:
gb_operation_destroy(operation); gb_operation_destroy(operation);
kfree(local_response);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment