[Asterisk-code-review] res pjsip transport websocket.c: Fix serializer ref leak. (asterisk[13])

Jenkins2 asteriskteam at digium.com
Fri Aug 4 10:14:49 CDT 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6144 )

Change subject: res_pjsip_transport_websocket.c: Fix serializer ref leak.
......................................................................

res_pjsip_transport_websocket.c: Fix serializer ref leak.

Change-Id: Ib5a19bfd597f63d9021baeb645fc11153b3afa57
---
M res/res_pjsip_transport_websocket.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/res/res_pjsip_transport_websocket.c b/res/res_pjsip_transport_websocket.c
index dd3922c..c0961a3 100644
--- a/res/res_pjsip_transport_websocket.c
+++ b/res/res_pjsip_transport_websocket.c
@@ -365,6 +365,7 @@
 
 	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;
 	}

-- 
To view, visit https://gerrit.asterisk.org/6144
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5a19bfd597f63d9021baeb645fc11153b3afa57
Gerrit-Change-Number: 6144
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170804/472dc3af/attachment.html>


More information about the asterisk-code-review mailing list