Skip to content

Commit

Permalink
Issue #295: Fixed double json_decref()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Nov 27, 2024
1 parent 740e09c commit 239db92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion janus/src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static struct janus_plugin_result *_plugin_handle_message(
json_t *const m_result = json_object(); \
json_object_set_new(m_result, "status", json_string(x_status)); \
if (x_payload != NULL) { \
json_object_set_new(m_result, x_status, x_payload); \
json_object_set(m_result, x_status, x_payload); \
} \
json_object_set_new(m_event, "result", m_result); \
_g_gw->push_event(session, create(), transaction, m_event, x_jsep); \
Expand Down

0 comments on commit 239db92

Please sign in to comment.