]> 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 50c6210e965d509a3b6337e50a3f20c1a624222d..870b36bd48c8e021e83e713f19bb86274872c502 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;
                }