From b77cf4d021f26eb3fda81abec10464594324fac2 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 4 Oct 2016 14:02:12 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15613 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System --- libglusterfs/src/client_t.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') 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); -- cgit