diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 4e65a7f0f07..f85fe2babc6 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -183,8 +183,8 @@ glusterd_is_local_addr (char *hostname) out: - //if (result) - // freeaddrinfo (result); + if (result) + freeaddrinfo (result); if (buf.ifc_req) GF_FREE (buf.ifc_req); @@ -520,6 +520,8 @@ glusterd_brickinfo_delete (glusterd_brickinfo_t *brickinfo) list_del_init (&brickinfo->brick_list); + if (brickinfo->logfile) + GF_FREE (brickinfo->logfile); GF_FREE (brickinfo); ret = 0; |