projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
- update changelog
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index 550ce8ff7934169059a07e28a842c63f4a094525..113db97628f68627477f6893e393d01039facdf1 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-180,7
+180,9
@@
PHP_FUNCTION(http_build_url)
if (new_url) {
php_url_free(new_url);
}
- php_url_free(old_url);
+ if (old_url) {
+ php_url_free(old_url);
+ }
RETURN_STRINGL(url_str, url_len, 0);
}