summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_virtual_cwd.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2011-05-16 19:46:32 +0000
committerJohannes Schlüter <johannes@php.net>2011-05-16 19:46:32 +0000
commit9ea582a76c1a049d731c0b771932a4405ca4ee22 (patch)
tree9b2f4957f071367ae6027146152086572215b83e /TSRM/tsrm_virtual_cwd.c
parentdf2ca16fa85c65711dc48023e213d99c0ff2170b (diff)
downloadphp-git-9ea582a76c1a049d731c0b771932a4405ca4ee22.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 3c768d3be4..6fdf9eb994 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -1079,6 +1079,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;
}
}