summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorRinku Kothiya <rkothiya@redhat.com>2018-12-05 19:18:17 +0530
committerRinku Kothiya <rkothiya@redhat.com>2018-12-06 17:37:04 +0530
commit4bdabc49d034ab2b76e4861a6e10ae41deb86d5e (patch)
tree50ada6ce7356cf21ceef1a7b0bfffc9debb3e2df /cli/src
parent36e1175df6f404aad89b8a802d4f603ebaa3515b (diff)
cli: fix a memory leak reported by ASan.
Fixed a leak in cli_cmd_volume_remove_brick_cbk. SUMMARY: AddressSanitizer: 1152 byte(s) leaked in 8 allocation(s) updates: bz#1633930 Credits: Mohit Agrawal Change-Id: Idb59c3880329fde59c415c84d7f0bb09ae879a1a Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-cmd-volume.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
index ebabebf2e4f..7ce5621cdb4 100644
--- a/cli/src/cli-cmd-volume.c
+++ b/cli/src/cli-cmd-volume.c
@@ -2163,6 +2163,8 @@ out:
#endif
CLI_STACK_DESTROY(frame);
+ if (options)
+ dict_unref(options);
return ret;
}