summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorSheetal Pamecha <spamecha@redhat.com>2020-07-26 17:06:55 +0530
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-07-29 02:35:53 +0000
commit74a195e475e893eb2ed0f814f88a1d726ad50114 (patch)
tree9e0dff2fcb5c360c9f1b56f88ca1a5c8d8536c7f /xlators/mgmt/glusterd/src/glusterd-utils.c
parent4284a3fea05af2d6de63fc71f79c7a0832dbaa96 (diff)
downloadglusterfs-74a195e475e893eb2ed0f814f88a1d726ad50114.tar.gz
glusterfs-74a195e475e893eb2ed0f814f88a1d726ad50114.tar.xz
glusterfs-74a195e475e893eb2ed0f814f88a1d726ad50114.zip
glusterd: fix resource leak
CID: 1430146 Change-Id: Icce4ffa0e78575b110e0cfd9d5cfd133141680c1 Updates: #1060 Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index b1c3a49574..f1dd44babd 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -14792,6 +14792,7 @@ out:
free(ai_list_tmp2);
ai_list_tmp2 = ai_list_tmp1;
}
+ free(ai_list);
free(ai_list_tmp2);
gf_msg_debug("glusterd", 0, "Returning %d", ret);
return ret;