greybus: battery-gb.c: fix memory leak found by Viresh
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Родитель
cc662399dc
Коммит
c9346e19b2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче