diff options
| author | Andi Gutmans <andi@php.net> | 2000-08-31 22:24:20 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-08-31 22:24:20 +0000 |
| commit | 27de50012b516feb4eb9845d2992c45c89abd57a (patch) | |
| tree | f89e8e698d1ec4aceda4cbbec2bd68375356baea /Zend/zend.c | |
| parent | 1bb90f5805ea471dd85ee0806203d3fe71059630 (diff) | |
| download | php-git-27de50012b516feb4eb9845d2992c45c89abd57a.tar.gz | |
- Use emalloc() for opened_path now. This was a potential leak before.
- This patch has potential to break stuff but I tested it as much as I
- could. Fixes should be easy.
Diffstat (limited to 'Zend/zend.c')
| -rw-r--r-- | Zend/zend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 304f4740dd..3ba958f11a 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -214,7 +214,7 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int static FILE *zend_fopen_wrapper(const char *filename, char **opened_path) { if (opened_path) { - *opened_path = strdup(filename); + *opened_path = estrdup(filename); } return fopen(filename, "rb"); } |
