]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_transport_websocket.c: Fix serializer ref leak.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 26 Jul 2017 22:49:57 +0000 (17:49 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 3 Aug 2017 21:28:02 +0000 (16:28 -0500)
Change-Id: Ib5a19bfd597f63d9021baeb645fc11153b3afa57

res/res_pjsip_transport_websocket.c

index dd3922cacb0b66cefea90f748bb6fc18a9fc6f9e..c0961a31313fea6deec6482d8caee9c671bf6b99 100644 (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;
        }