Fix crash.

This commit is contained in:
SuperSaiyajinStackZ
2019-12-22 21:47:44 +01:00
parent 3ebdb7e95d
commit b723836397
+1 -5
View File
@@ -282,11 +282,7 @@ Result downloadFromRelease(std::string url, std::string asset, std::string path,
CURL *hnd = curl_easy_init();
if (downloadToRAM == true) {
ret = setupContext(hnd, apiurl.c_str());
} else {
ret = setupContextForDirectToFileDownload(hnd, apiurl.c_str());
}
ret = setupContext(hnd, apiurl.c_str());
if (ret != 0) {
socExit();
free(result_buf);