summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2016-10-04 14:02:12 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-10-11 05:18:20 -0700
commitb77cf4d021f26eb3fda81abec10464594324fac2 (patch)
treed86bae55a1929a1dfc6df3c44f5e4f173249af4f
parentde07155bfae3c5846797cbb19ee044751cbe6f6e (diff)
libglusterfs/client_t: cleanup username and passwd in client_destroy()
Thanks to bingxuan.zhang at nokia dot com for the report and patch. Change-Id: If2b2151ab4df27d769126860d98770c80bc8a534 BUG: 1377584 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/15613 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
-rw-r--r--libglusterfs/src/client_t.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c
index 3e0e5936ae2..b3eb4e4df8c 100644
--- a/libglusterfs/src/client_t.c
+++ b/libglusterfs/src/client_t.c
@@ -366,6 +366,8 @@ client_destroy (client_t *client)
}
}
GF_FREE (client->auth.data);
+ GF_FREE (client->auth.username);
+ GF_FREE (client->auth.passwd);
GF_FREE (client->scratch_ctx.ctx);
GF_FREE (client->client_uid);
GF_FREE (client);