projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- tests fixup
[m6w6/ext-http]
/
http_api.c
diff --git
a/http_api.c
b/http_api.c
index 34481459d38131ca72737d3468e98ee87eb7cd6a..c5c63f95cd129ac8a72d8fc310d413971e27c0fd 100644
(file)
--- a/
http_api.c
+++ b/
http_api.c
@@
-22,6
+22,7
@@
#include "SAPI.h"
#include "ext/standard/url.h"
#include "SAPI.h"
#include "ext/standard/url.h"
+#include "ext/standard/head.h"
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http.h"
#include "php_http_std_defs.h"
@@
-175,6
+176,7
@@
void _http_error_ex(long type TSRMLS_DC, long code, const char *format, ...)
vspprintf(&message, 0, format, args);
zend_throw_exception(http_exception_get_for_code(code), message, code TSRMLS_CC);
vspprintf(&message, 0, format, args);
zend_throw_exception(http_exception_get_for_code(code), message, code TSRMLS_CC);
+ efree(message);
} else
#endif
php_verror(NULL, "", type, format, args TSRMLS_CC);
} else
#endif
php_verror(NULL, "", type, format, args TSRMLS_CC);