summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 1e2b4f0840a..e0c9c94d335 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -250,14 +250,18 @@ int cmd_block(void)
if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
DBG(0, ("blocksize <n>\n"));
err = 1;
+ goto out;
}
if (tar_set_blocksize(&tar_ctx, atoi(buf))) {
DBG(0, ("invalid blocksize\n"));
err = 1;
+ goto out;
}
DBG(2, ("blocksize is now %d\n", tar_ctx.mode.blocksize));
+
+ out:
talloc_free(ctx);
return err;
}