mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 22:45:11 +07:00
greybus: battery-gb.c: fix memory leak found by Viresh
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
cc662399dc
commit
c9346e19b2
@ -139,6 +139,7 @@ static int battery_operation(struct gb_battery *gb, int type,
|
||||
}
|
||||
out:
|
||||
gb_operation_destroy(operation);
|
||||
kfree(local_response);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user