From 5f7a2525cf0c3bb48bdf39605b810c188c8d895f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 17 Apr 2024 08:34:06 -0400 Subject: [PATCH] MT#55283 fix session reference leak Change-Id: I8d906e6a0585422b66574f28ac1c8fb32615cc99 (cherry picked from commit ea3d4da69b942c3ab2e4f0028164c720a86906ff) --- daemon/janus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/janus.c b/daemon/janus.c index 26a957978..3affda7fe 100644 --- a/daemon/janus.c +++ b/daemon/janus.c @@ -1206,6 +1206,8 @@ static const char *janus_create(JsonReader *reader, JsonBuilder *builder, struct json_builder_add_int_value(builder, session_id); json_builder_end_object(builder); // } + obj_put(session); + return NULL; }