Merge "res_pjsip_transport_websocket.c: Fix serializer ref leak."

This commit is contained in:
Jenkins2 2017-08-04 10:51:42 -05:00 committed by Gerrit Code Review
commit 7af10de1ba
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}