From c706f3246b05708cf04152af43c2da99757b5daf Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 16 May 2006 20:42:01 +0000 Subject: [PATCH] fix error path --- lib/commands/toolcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 547b6721e..4bdd63458 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -924,7 +924,7 @@ struct cmd_context *create_toolcontext(struct arg *the_args) if (!(cmd->libmem = dm_pool_create("library", 4 * 1024))) { log_error("Library memory pool creation failed"); - return 0; + goto error; } if (!_init_lvm_conf(cmd))