Remove a double free. Change the IPFS env use to a plain getenv() simply
because coverity gets confused.
Follow-up to
9126b141c9398fe
Closes #13241
ipfs_path = curl_getenv("IPFS_PATH");
if(!ipfs_path) {
- char *home = curl_getenv("HOME");
+ char *home = getenv("HOME");
if(home && *home)
ipfs_path = aprintf("%s/.ipfs/", home);
/* fallback to "~/.ipfs", as that's the default location. */
-
- curl_free(home);
}
if(!ipfs_path || ensure_trailing_slash(&ipfs_path))
errorf(global, "out of memory");
return CURLE_OUT_OF_MEMORY;
}
- curl_free(env);
capath_from_env = true;
}
env = curl_getenv("SSL_CERT_FILE");