From 7c0cb6eebd37ced16bb3b4410404be12e8c892b5 Mon Sep 17 00:00:00 2001 From: Harpreet Lalwani Date: Mon, 15 Oct 2018 12:41:17 +0530 Subject: 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 --- cli/src/cli-cmd-volume.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit