fix: Header memory leak in http requests class
This commit is contained in:
parent
bb4819bce4
commit
9463105172
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 36f3c9cc8c3f38bb1f2540f6dbcdc842f5a67a0d
|
||||
Subproject commit a2fbf46b5132f5c4a061527f4caf12d11ac0eebf
|
@ -282,6 +282,7 @@ namespace hex {
|
||||
|
||||
curl_slist *headers = nullptr;
|
||||
headers = curl_slist_append(headers, "Cache-Control: no-cache");
|
||||
ON_SCOPE_EXIT { curl_slist_free_all(headers); };
|
||||
|
||||
for (auto &[key, value] : this->m_headers) {
|
||||
std::string header = hex::format("{}: {}", key, value);
|
||||
|
Loading…
Reference in New Issue
Block a user