summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-10-10 15:39:30 +0200
committerRaghavendra G <rgowdapp@redhat.com>2017-10-11 04:57:38 +0000
commit6060b113f0f49fe9654fe03fc79576e591ed8a43 (patch)
tree67c66bc7107fba48a378333659876e34d13c2686 /rpc/rpc-lib
parentec39ca32d942d49fd701156174abbba0b73bce2f (diff)
rpc: free conn->name in rpc_clnt_destroy()
Change-Id: Idf99908aa48718a7faf7f0bbc647a679ec548282 BUG: 1443145 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c
index 1ea80991ebe..2fc3b38df2c 100644
--- a/rpc/rpc-lib/src/rpc-clnt.c
+++ b/rpc/rpc-lib/src/rpc-clnt.c
@@ -1777,6 +1777,7 @@ rpc_clnt_destroy (struct rpc_clnt *rpc)
if (!rpc)
return;
+ GF_FREE (rpc->conn.name);
saved_frames_destroy (rpc->conn.saved_frames);
pthread_mutex_destroy (&rpc->lock);
pthread_mutex_destroy (&rpc->conn.lock);