Fix storaged memory leak
storaged try to load user's proto even if it has been loaded before
https://partnerissuetracker.corp.google.com/u/2/issues/118719575
Change-Id: Ia7575cdc60e82b028c6db9a29ae80e31e02268b1
(cherry picked from commit 857a63eb66
)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 170732441
Test: compile
This commit is contained in:
parent
3c751b9f66
commit
f042976977
|
@ -164,8 +164,10 @@ storaged_t::storaged_t(void) {
|
|||
}
|
||||
|
||||
void storaged_t::add_user_ce(userid_t user_id) {
|
||||
load_proto(user_id);
|
||||
proto_loaded[user_id] = true;
|
||||
if (!proto_loaded[user_id]) {
|
||||
load_proto(user_id);
|
||||
proto_loaded[user_id] = true;
|
||||
}
|
||||
}
|
||||
|
||||
void storaged_t::remove_user_ce(userid_t user_id) {
|
||||
|
|
Loading…
Reference in New Issue