summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorHarpreet Lalwani <hlalwani@redhat.com>2018-10-15 12:41:17 +0530
committergluster-ant <bugzilla-bot@gluster.org>2018-10-15 12:41:17 +0530
commitc79eecfb7dbcf486ec2ba552c21431cefc01140d (patch)
tree86aab692e3adbaf015495ce62ab9a4e0953c35eb /cli/src
parentca5fccc0a85c8ca4dc85e2f50603e68e75b80b9c (diff)
cli: memory leak issue reported by asan
This patch fixes Indirect leaks in tests/bugs/heal-symlinks.t. Leaks are happening in cli_cmd_volume_heal_cbk. SUMMARY: AddressSanitizer: 640 byte(s) leaked in 4 allocation(s). Updates: bz#1633930 Change-Id: I970b4229630fdaf01aec66581c1287beef7560a3 Signed-off-by: Harpreet Lalwani <hlalwani@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-volume.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index 2c7ec63808..55917e8217 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -2956,6 +2956,9 @@ out:
}
}
+ if (options)
+ dict_unref(options);
+
CLI_STACK_DESTROY(frame);
return ret;