Skip to content
Snippets Groups Projects
Commit bd248a0b authored by Dan Fandrich's avatar Dan Fandrich
Browse files

tool_main: Fixed a memory leak on main_init error

parent 219d19a4
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment