From 4bdabc49d034ab2b76e4861a6e10ae41deb86d5e Mon Sep 17 00:00:00 2001 From: Rinku Kothiya Date: Wed, 5 Dec 2018 19:18:17 +0530 Subject: 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 --- cli/src/cli-cmd-volume.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/src') 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; } -- cgit