cvs: php4 /ext/mbstring mbregex.c

From: Date: Tue, 08 Oct 2002 14:57:06 +0000
Subject: cvs: php4 /ext/mbstring mbregex.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14712@lists.php.net to get a copy of this message
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));

« previous php.cvs (#14712) next »