aboutsummaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index 955e4795f..1e9156aca 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -154,13 +154,18 @@ static CURLcode main_init(struct GlobalConfig *config)
else {
helpf(stderr, "error initializing curl easy handle\n");
result = CURLE_FAILED_INIT;
+ free(config->first);
}
}
- else
+ else {
helpf(stderr, "error retrieving curl library information\n");
+ free(config->first);
+ }
}
- else
+ else {
helpf(stderr, "error initializing curl library\n");
+ free(config->first);
+ }
}
else {
helpf(stderr, "error initializing curl\n");