diff options
author | Harpreet Lalwani <hlalwani@redhat.com> | 2018-10-15 12:41:17 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-03 05:48:28 +0000 |
commit | 7c0cb6eebd37ced16bb3b4410404be12e8c892b5 (patch) | |
tree | 86aab692e3adbaf015495ce62ab9a4e0953c35eb | |
parent | 0b54c92a22c89fd1d8e03cad2dfb70a5b73ee12a (diff) | |
download | glusterfs-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.c | 3 |
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; |