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>
This commit is contained in:
Rinku Kothiya 2018-12-05 19:18:17 +05:30
parent 36e1175df6
commit 4bdabc49d0

View File

@ -2163,6 +2163,8 @@ out:
#endif
CLI_STACK_DESTROY(frame);
if (options)
dict_unref(options);
return ret;
}