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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user