summaryrefslogtreecommitdiffstats
path: root/cli
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 /cli
parent0b54c92a22c89fd1d8e03cad2dfb70a5b73ee12a (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')
-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 2c7ec638086..55917e8217c 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;