summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarpreet Lalwani <hlalwani@redhat.com>2018-10-15 12:41:17 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-03 05:48:28 +0000
commit7c0cb6eebd37ced16bb3b4410404be12e8c892b5 (patch)
tree86aab692e3adbaf015495ce62ab9a4e0953c35eb
parent0b54c92a22c89fd1d8e03cad2dfb70a5b73ee12a (diff)
downloadglusterfs-7c0cb6eebd37ced16bb3b4410404be12e8c892b5.tar.gz
glusterfs-7c0cb6eebd37ced16bb3b4410404be12e8c892b5.tar.xz
glusterfs-7c0cb6eebd37ced16bb3b4410404be12e8c892b5.zip
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>
-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;