summaryrefslogtreecommitdiff
path: root/res/res_http_websocket.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-08-18 14:24:17 -0500
committerRichard Mudgett <rmudgett@digium.com>2015-08-18 16:40:04 -0500
commite1e7e205bce3d177601ccfa25edd3391d623511a (patch)
tree9bdb265f9e3676b3de6b2e908f331163a5d7aa2f /res/res_http_websocket.c
parent59253a22623ff82cb382c633877d44636d2bda77 (diff)
res_http_websocket.c: Add missing unref on an off nominal path.
Change-Id: I228df6adecd4cb450d03e09e9a38c86bb566e811
Diffstat (limited to 'res/res_http_websocket.c')
-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;
}