summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-01-13 17:43:09 +0000
committerDmitry Stogov <dmitry@php.net>2004-01-13 17:43:09 +0000
commitc708524676f3bab5e370a7612bdfddb3f3bd3be1 (patch)
tree82bc5f9c7007dcea06036e82085cac755ad8d6cb /ext/soap/php_http.c
parentbee92aa395c622c4dfe42b100ec58e17b58ab5bf (diff)
downloadphp-git-c708524676f3bab5e370a7612bdfddb3f3bd3be1.tar.gz
FIX: memory leak
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 15542b3c17..361585d477 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -264,6 +264,7 @@ int get_http_soap_response(zval *this_ptr, char **buffer, int *buffer_len TSRMLS
/* Try and get headers again */
if (!strcmp(http_status, "100")) {
+ efree(http_headers);
if (!get_http_headers(stream, &http_headers, &http_header_size TSRMLS_CC)) {
php_stream_close(stream);
zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"));