summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-01-31 15:22:17 +0000
committerPierre Joye <pajoye@php.net>2010-01-31 15:22:17 +0000
commit565af741e4aedd8281fb3d38ab1d379267a94cb6 (patch)
tree0469993ed92481329749afe792c46fc954a54fb2
parent5f935b4da5afb2d732ef93148bd3868526d7028b (diff)
downloadphp-git-565af741e4aedd8281fb3d38ab1d379267a94cb6.tar.gz
- fix leak
-rw-r--r--TSRM/tsrm_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index f4727c82de..ca3452bc6a 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -223,11 +223,13 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
}
if(access(pathname, mode)) {
+ free(real_path);
return errno;
}
/* If only existence check is made, return now */
if (mode == 0) {
+ free(real_path);
return 0;
}