From: Greg Beaver Date: Thu, 14 May 2009 13:36:44 +0000 (+0000) Subject: fix potential free of NULL X-Git-Tag: php-5.4.0alpha1~191^2~3666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16cc6e6b6495000a0c4df0c465d8f97e2728865e;p=php fix potential free of NULL --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 423abe6416..7cc5fde11c 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -450,7 +450,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 */