diff options
-rw-r--r-- | cli/src/cli-cmd-volume.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 53f304023bd..6dade9256e4 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -253,11 +253,12 @@ out: cli_out ("Volume create failed"); } - CLI_STACK_DESTROY (frame); if (ret == 0) { gf_event (EVENT_VOLUME_CREATE, "name=%s;bricks=%s", (char *)words[2], bricks); } + + CLI_STACK_DESTROY (frame); return ret; } |