X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=19f25fa42759967a56e74df7f44fe4e37bf92a58;hp=e2e5ab6d3e3c33a3a0892be5a0e9d23c468721e9;hb=bb6571e22d14c87114eb729145be2e7b87ebea42;hpb=2214902cf967c3aaf8e8493295f1ac43831ed015 diff --git a/http_request_api.c b/http_request_api.c index e2e5ab6..19f25fa 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -193,6 +193,10 @@ PHP_HTTP_API void _http_request_body_dtor(http_request_body *body TSRMLS_DC) case HTTP_REQUEST_BODY_CURLPOST: curl_formfree(body->data); break; + + case HTTP_REQUEST_BODY_UPLOADFILE: + php_stream_close(body->data); + break; } } /* }}} */