summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/cli-cmd-volume.c')
-rw-r--r--cli/src/cli-cmd-volume.c4
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;
}