From de001e8659d78dd16ba8515228c70fd2986e56df Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 30 Oct 2010 13:09:08 +0000 Subject: cli: Fix memory leaks Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1198 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1198 --- cli/src/cli-cmd-volume.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 8fb32f5de47..c2b819e68d9 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -629,6 +629,8 @@ out: cli_out ("Adding brick to Volume %s failed",volname ); } } + if (options) + dict_unref (options); return ret; } @@ -685,6 +687,8 @@ out: cli_out ("Removing brick from Volume %s failed",volname ); } } + if (options) + dict_unref (options); return ret; } -- cgit