cvs: /php4 php_virtual_cwd.c
| From: | Andi Gutmans | Date: | Thu, 16 Mar 2000 18:56:39 +0000 |
| Subject: | cvs: /php4 php_virtual_cwd.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12269@lists.php.net to get a copy of this message | ||
andi Thu Mar 16 10:56:39 2000 EDT
Modified files:
/php4 php_virtual_cwd.c
Log:
- Fix a leak (I think)
Index: php4/php_virtual_cwd.c
diff -u php4/php_virtual_cwd.c:1.5 php4/php_virtual_cwd.c:1.6
--- php4/php_virtual_cwd.c:1.5 Thu Mar 16 10:52:15 2000
+++ php4/php_virtual_cwd.c Thu Mar 16 10:56:08 2000
@@ -2,16 +2,15 @@
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
-
-#ifndef PHP_WIN32
-#include <unistd.h>
-#endif
-
#include <limits.h>
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
+#ifndef PHP_WIN32
+#include <unistd.h>
+#endif
+
typedef unsigned int uint;
#ifdef PHP_WIN32
@@ -191,6 +190,8 @@
return (1);
}
+ free(old_state->cwd);
+ free(old_state);
return (0);
}