iliaa Tue Oct 8 10:57:06 2002 EDT
Modified files:
/php4/ext/mbstring mbregex.c
Log:
Fixed memory leak.
Index: php4/ext/mbstring/mbregex.c
diff -u php4/ext/mbstring/mbregex.c:1.11 php4/ext/mbstring/mbregex.c:1.12
--- php4/ext/mbstring/mbregex.c:1.11 Tue Oct 8 04:01:06 2002
+++ php4/ext/mbstring/mbregex.c Tue Oct 8 10:57:06 2002
@@ -309,8 +309,10 @@
int ch;
TSRMLS_FETCH();
- if (done)
- return;
+ if (done) {
+ efree(s);
+ return;
+ }
memset(re_syntax_table, 0, sizeof(re_syntax_table));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php