]> granicus.if.org Git - php/commitdiff
- fix leak
authorPierre Joye <pajoye@php.net>
Sun, 7 Feb 2010 21:09:19 +0000 (21:09 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 7 Feb 2010 21:09:19 +0000 (21:09 +0000)
TSRM/tsrm_win32.c

index 223b221175f01eccdf6d66db69a32afdd83cd8e5..0438ca48aa8c56de18e12a002e81f8a930507c9d 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;
                }