summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2019-12-26 13:50:20 +0300
committerAmar Tumballi <amarts@gmail.com>2019-12-31 05:39:30 +0000
commit745f6534c514010cc69e2306e1621e9d14ff5dba (patch)
tree78663da1d75e57fffbc6bde2740d08ef331e685b /rpc
parent9937b9857472c346c071c3850b032ae9237721e5 (diff)
transport/socket: destroy notify mutex and condition variable
Change-Id: Id74f829dc5c6a30d19e3c3ef42bcb938afc0d8e4 Updates: bz#1430623 Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 483b6a3..4149528 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -4693,6 +4693,11 @@ fini(rpc_transport_t *this)
pthread_mutex_destroy(&priv->out_lock);
pthread_mutex_destroy(&priv->cond_lock);
pthread_cond_destroy(&priv->cond);
+
+ GF_ASSERT(priv->notify.in_progress == 0);
+ pthread_mutex_destroy(&priv->notify.lock);
+ pthread_cond_destroy(&priv->notify.cond);
+
if (priv->use_ssl && priv->ssl_ssl) {
SSL_clear(priv->ssl_ssl);
SSL_free(priv->ssl_ssl);