Fix memory leak in index

This commit is contained in:
simon987 2020-07-15 20:41:09 -04:00
parent 75b5e249c1
commit c8536f65a8

View File

@ -131,6 +131,7 @@ response_t *web_get(const char *url) {
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &resp->status_code);
curl_easy_cleanup(curl);
curl_slist_free_all(headers);
resp->body = buffer.buf;
resp->size = buffer.cur;