From: Greg Beaver Date: Thu, 14 May 2009 13:36:56 +0000 (+0000) Subject: MFH: fix potential free of NULL X-Git-Tag: php-5.3.0RC3~264 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aabee2ec69b66182da627381dd69d95fbed08d2;p=php MFH: fix potential free of NULL --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 2074bf28ec..948d736b48 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -407,7 +407,9 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, have_header |= HTTP_HEADER_TYPE; } } - efree(tmp); + if (tmp) { + efree(tmp); + } } /* auth header if it was specified */