Skip to content

Commit

Permalink
MT#55283 fix websocket shutdown mem leak
Browse files Browse the repository at this point in the history
Release object reference when key is removed. Only relevant at shutdown.

Change-Id: Idc18890bb34d7e584dc5b4816553c759c3c663e2
(cherry picked from commit 7b9fcae)
(cherry picked from commit 070f50b)
  • Loading branch information
rfuchs committed Oct 2, 2024
1 parent 017f040 commit 5cafeb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemon/janus.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct janus_session { // "login" session
janus_handles_set handles; // handle ID -> 0x1. handle ID owned by janus_handles
};

TYPED_GHASHTABLE(janus_sessions_ht, uint64_t, struct janus_session, int64_hash, int64_eq, NULL, NULL)
TYPED_GHASHTABLE(janus_sessions_ht, uint64_t, struct janus_session, int64_hash, int64_eq, NULL, __obj_put)


struct janus_handle { // corresponds to a conference participant
Expand Down Expand Up @@ -1541,7 +1541,6 @@ static const char *janus_message(struct websocket_message *wm, JsonReader *reade
}

return err;

}


Expand Down

0 comments on commit 5cafeb8

Please sign in to comment.