From: Richard Mudgett Date: Tue, 18 Aug 2015 19:24:17 +0000 (-0500) Subject: res_http_websocket.c: Add missing unref on an off nominal path. X-Git-Tag: 14.0.0-beta1~733^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1e7e205bce3d177601ccfa25edd3391d623511a;p=thirdparty%2Fasterisk.git res_http_websocket.c: Add missing unref on an off nominal path. Change-Id: I228df6adecd4cb450d03e09e9a38c86bb566e811 --- diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index 86ec00cce0..c40aae6d27 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; }