diff options
author | Pierre Joye <pajoye@php.net> | 2010-01-31 15:22:17 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-01-31 15:22:17 +0000 |
commit | 565af741e4aedd8281fb3d38ab1d379267a94cb6 (patch) | |
tree | 0469993ed92481329749afe792c46fc954a54fb2 | |
parent | 5f935b4da5afb2d732ef93148bd3868526d7028b (diff) | |
download | php-git-565af741e4aedd8281fb3d38ab1d379267a94cb6.tar.gz |
- fix leak
-rw-r--r-- | TSRM/tsrm_win32.c | 2 |
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; } |