From 61c487c3e8c852765b3a454c523ff3ee1e5a003c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 6 Aug 2016 11:47:07 -0500 Subject: [PATCH] Revert "FS-8761 #resolve [Memory leak in FreeSWITCH]" This reverts commit 341e94b28d966ae47390606c5447bb56f2453465. --- libs/sofia-sip/libsofia-sip-ua/tport/ws.c | 6 +++--- src/mod/endpoints/mod_verto/ws.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c index f3783c024e..7fe9f182bf 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/ws.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/ws.c @@ -547,9 +547,9 @@ static int establish_logical_layer(wsh_t *wsh) wsh->sanity--; - //if (!wsh->block) { - // return -2; - //} + if (!wsh->block) { + return -2; + } } while (wsh->sanity > 0); diff --git a/src/mod/endpoints/mod_verto/ws.c b/src/mod/endpoints/mod_verto/ws.c index 954e9f43df..265dd10d8e 100644 --- a/src/mod/endpoints/mod_verto/ws.c +++ b/src/mod/endpoints/mod_verto/ws.c @@ -547,9 +547,9 @@ static int establish_logical_layer(wsh_t *wsh) wsh->sanity--; - //if (!wsh->block) { - //return -2; - //} + if (!wsh->block) { + return -2; + } } while (wsh->sanity > 0);