diff options
author | Johannes Schlüter <johannes@php.net> | 2011-05-16 19:46:32 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2011-05-16 19:46:32 +0000 |
commit | db6a29e533a31a22f03d1db4e10dad898771a26b (patch) | |
tree | d2630a0e9b706c8b044b763d5f567633b7cf8079 /TSRM/tsrm_virtual_cwd.c | |
parent | a546b3207f9495201ccfa48312f8489515ab004b (diff) | |
download | php-git-db6a29e533a31a22f03d1db4e10dad898771a26b.tar.gz |
- Fix possible memory leak
# Found by parfait - http://labs.oracle.com/projects/parfait/
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.c')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index d533245c61..b88bae90a8 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -1067,6 +1067,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i } if (is_dir && !directory) { /* not a directory */ + tsrm_free_alloca(tmp, use_heap); return -1; } } |