CVS update: php3/functions
| From: | sas | Date: | Tue, 29 Dec 1998 11:24:59 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3158@lists.php.net to get a copy of this message | ||
Date: Tuesday December 29, 1998 @ 6:24
Author: sas
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv19682
Modified Files:
reg.c
Log Message:
add some missing regfrees
Index: php3/functions/reg.c
diff -c php3/functions/reg.c:1.93 php3/functions/reg.c:1.94
*** php3/functions/reg.c:1.93 Mon Dec 28 06:59:22 1998
--- php3/functions/reg.c Tue Dec 29 06:24:58 1998
***************
*** 28,34 ****
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
! /* $Id: reg.c,v 1.93 1998/12/28 11:59:22 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 28,34 ----
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
! /* $Id: reg.c,v 1.94 1998/12/29 11:24:58 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 209,214 ****
--- 209,215 ----
err = regexec(&re, string, (size_t) NS, subs, 0);
if (err && err != REG_NOMATCH) {
_php3_reg_eprint(err, &re);
+ _php3_regfree(&re);
RETURN_FALSE;
}
match_len = 1;
***************
*** 565,570 ****
--- 566,572 ----
/* see if we encountered an error */
if (err && err != REG_NOMATCH) {
php3_error(E_WARNING, "unexpected regex error (%d)", err);
+ _php3_regfree(&re);
_php3_hash_destroy(return_value->value.ht);
efree(return_value->value.ht);
RETURN_FALSE;
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net