diff options
| author | Greg Beaver <cellog@php.net> | 2008-03-12 03:12:35 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2008-03-12 03:12:35 +0000 |
| commit | 70e30449bb2d55c9698eb5d0c787d20e3b5c1a23 (patch) | |
| tree | bef601640739d14f4fb6efa1cdf5dea3234779aa /ext/phar | |
| parent | 1fe7347fedc8e8936dd0bce129738f4686c6de45 (diff) | |
| download | php-git-70e30449bb2d55c9698eb5d0c787d20e3b5c1a23.tar.gz | |
fix leaked var, fixes all tests for me
Diffstat (limited to 'ext/phar')
| -rw-r--r-- | ext/phar/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c index 36e77184f1..5fefb2406d 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -150,6 +150,9 @@ void phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress efree(newname); if (!phar->is_data) { + if (phar->alias) { + efree(phar->alias); + } phar->alias = estrndup(newpath, strlen(newpath)); phar->alias_len = strlen(newpath); zend_hash_update(&(PHAR_GLOBALS->phar_alias_map), newpath, strlen(newpath), (void*)&phar, sizeof(phar_archive_data*), NULL); |
