cvs: php-src /ext/standard http_fopen_wrapper.c
| From: | Greg Beaver | Date: | Thu, 14 May 2009 13:36:45 +0000 |
| Subject: | cvs: php-src /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57808@lists.php.net to get a copy of this message | ||
cellog Thu May 14 13:36:45 2009 UTC
Modified files:
/php-src/ext/standard http_fopen_wrapper.c
Log:
fix potential free of NULL
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.142&r2=1.143&diff_format=u
Index: php-src/ext/standard/http_fopen_wrapper.c
diff -u php-src/ext/standard/http_fopen_wrapper.c:1.142
php-src/ext/standard/http_fopen_wrapper.c:1.143
--- php-src/ext/standard/http_fopen_wrapper.c:1.142 Tue May 5 00:30:40 2009
+++ php-src/ext/standard/http_fopen_wrapper.c Thu May 14 13:36:44 2009
@@ -19,7 +19,7 @@
| Sara Golemon <pollita@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.142 2009/05/05 00:30:40 jani Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.143 2009/05/14 13:36:44 cellog Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -450,7 +450,9 @@
have_header |= HTTP_HEADER_TYPE;
}
}
- efree(tmp);
+ if (tmp) {
+ efree(tmp);
+ }
}
/* auth header if it was specified */