mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
res_pjsip_transport_websocket.c: Fix serializer ref leak.
Change-Id: Ib5a19bfd597f63d9021baeb645fc11153b3afa57
This commit is contained in:
@@ -365,6 +365,7 @@ static void websocket_cb(struct ast_websocket *session, struct ast_variable *par
|
||||
|
||||
if (ast_sip_push_task_synchronous(serializer, transport_create, &create_data)) {
|
||||
ast_log(LOG_ERROR, "Could not create WebSocket transport.\n");
|
||||
ast_taskprocessor_unreference(serializer);
|
||||
ast_websocket_unref(session);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user