diff options
| author | Andi Gutmans <andi@php.net> | 1999-12-24 15:43:39 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-12-24 15:43:39 +0000 |
| commit | 3f6e00e48ddef5ab2dd73aa093c3654edd6ca534 (patch) | |
| tree | dbc0e52fe06f082ab90885c03c8ee6b316b42beb /ext/session/session.c | |
| parent | 62b2087a84018cf19e569b0256f2c3cbf4179470 (diff) | |
| download | php-git-3f6e00e48ddef5ab2dd73aa093c3654edd6ca534.tar.gz | |
- Use ALLOC_ZVAL() in PHP. Finding the places to put FREE_ZVAL(z) is much
more tricky and I'm not sure how many places this is. zval allocations
were only made directly in 11 places.
Diffstat (limited to 'ext/session/session.c')
| -rw-r--r-- | ext/session/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 26c7097094..ca7df05099 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -176,7 +176,7 @@ static void php_set_session_var(char *name, size_t namelen, PLS_FETCH(); ELS_FETCH(); - state_val_copy = (zval *)emalloc(sizeof(zval)); + state_val_copy = ALLOC_ZVAL(); *state_val_copy = *state_val; zval_copy_ctor(state_val_copy); state_val_copy->refcount = 0; |
