]> granicus.if.org Git - php/commitdiff
- fix leak
authorPierre Joye <pajoye@php.net>
Sun, 31 Jan 2010 15:22:17 +0000 (15:22 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 31 Jan 2010 15:22:17 +0000 (15:22 +0000)
TSRM/tsrm_win32.c

index f4727c82de85d547a14835f510135fa7bba0912e..ca3452bc6a7cbe5c4640d43d5511b3f51729acb4 100644 (file)
@@ -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;
                }