diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-10-30 13:09:08 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-30 21:23:22 -0700 |
commit | de001e8659d78dd16ba8515228c70fd2986e56df (patch) | |
tree | 0a8f3d75ed1cb273cc4ec50ec5463b0574413b3f /cli/src/cli-cmd-volume.c | |
parent | 961d5fb6025f4901d63be8cfc8062bd8e2093021 (diff) |
cli: Fix memory leaks
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1198 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1198
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
-rw-r--r-- | cli/src/cli-cmd-volume.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 8fb32f5de..c2b819e68 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; } |