X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_functions.c;h=113db97628f68627477f6893e393d01039facdf1;hb=3d32981b334c85d8f848488b77cb29eea6b7b544;hp=550ce8ff7934169059a07e28a842c63f4a094525;hpb=001564eec4dca90f93d7c474fecd15614387b48f;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index 550ce8f..113db97 100644 --- 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); }