summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2015-08-19 16:56:35 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-08-19 16:56:35 -0500
commit192693c2c1de37da7922c04b274fff22272269d5 (patch)
treee78b7f0f4d35d4ca4e85dc8160a5baf2ea854318
parent5d6b93a006c413f6067df0604bf61f08e2740593 (diff)
parente1e7e205bce3d177601ccfa25edd3391d623511a (diff)
Merge "res_http_websocket.c: Add missing unref on an off nominal path."
-rw-r--r--res/res_http_websocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c
index 86ec00cce..c40aae6d2 100644
--- a/res/res_http_websocket.c
+++ b/res/res_http_websocket.c
@@ -832,6 +832,7 @@ int AST_OPTIONAL_API_NAME(ast_websocket_uri_cb)(struct ast_tcptls_session_instan
ast_log(LOG_WARNING, "WebSocket connection from '%s' could not be accepted - failed to generate a session id\n",
ast_sockaddr_stringify(&ser->remote_address));
ast_http_error(ser, 500, "Internal Server Error", "Allocation failed");
+ ao2_ref(protocol_handler, -1);
return 0;
}