projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
a88a9ab
)
fix memory curruption, thanks to Rob
author
Michael Wallner
<mike@php.net>
Fri, 15 Aug 2008 11:41:38 +0000
(11:41 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 15 Aug 2008 11:41:38 +0000
(11:41 +0000)
http_request_api.c
patch
|
blob
|
history
diff --git
a/http_request_api.c
b/http_request_api.c
index 2d853a2b91265a135f767dbb261625f08556a254..ab6920098d2b0310dcb0862ff9af2a2247794e69 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-772,14
+772,12
@@
PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti
if (header_key.type == HASH_KEY_IS_STRING) {
char header[1024];
- ZVAL_ADDREF(*header_val);
convert_to_string_ex(header_val);
if (!strcasecmp(header_key.str, "range")) {
range_req = 1;
}
snprintf(header, sizeof(header), "%s: %s", header_key.str, Z_STRVAL_PP(header_val));
request->_cache.headers = curl_slist_append(request->_cache.headers, header);
- zval_ptr_dtor(header_val);
}
}
}