1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

curl: Remove incorrect string release on error

The string is owned by the caller, and the caller releases it.

Closes GH-18989.
This commit is contained in:
Niels Dossche
2025-07-01 00:44:50 +02:00
parent fa960f7d95
commit 11ea995ff3
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ PHP NEWS
- Curl:
. Fix memory leaks when returning refcounted value from curl callback.
(nielsdos)
. Remove incorrect string release. (nielsdos)
- LDAP:
. Fixed GH-18902 ldap_exop/ldap_exop_sync assert triggered on empty
-1
View File
@@ -1369,7 +1369,6 @@ static inline CURLcode add_simple_field(struct HttpPost **first, struct HttpPost
part = curl_mime_addpart(mime);
if (part == NULL) {
zend_tmp_string_release(tmp_postval);
zend_string_release_ex(string_key, 0);
return CURLE_OUT_OF_MEMORY;
}
if ((form_error = curl_mime_name(part, ZSTR_VAL(string_key))) != CURLE_OK