summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2009-05-14 13:36:56 +0000
committerGreg Beaver <cellog@php.net>2009-05-14 13:36:56 +0000
commit7aabee2ec69b66182da627381dd69d95fbed08d2 (patch)
tree1c793aabbe6780bff1bbf03dbe941358d1863294
parentc205eb51436aa84c83e8925da679b825eca6cc2b (diff)
downloadphp-git-7aabee2ec69b66182da627381dd69d95fbed08d2.tar.gz
MFH: fix potential free of NULL
-rw-r--r--ext/standard/http_fopen_wrapper.c4
1 files changed, 3 insertions, 1 deletions
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 */