cvs: php4 /ext/standard reg.c

From: Date: Mon, 11 Mar 2002 07:11:57 +0000
Subject: cvs: php4 /ext/standard reg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9885@lists.php.net to get a copy of this message
yohgaki Mon Mar 11 02:11:57 2002 EDT Modified files: /php4/ext/standard reg.c Log: Small memory leak fix that does not matter much. Index: php4/ext/standard/reg.c diff -u php4/ext/standard/reg.c:1.58 php4/ext/standard/reg.c:1.59 --- php4/ext/standard/reg.c:1.58 Thu Feb 28 03:26:49 2002 +++ php4/ext/standard/reg.c Mon Mar 11 02:11:54 2002 @@ -17,7 +17,7 @@ | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ -/* $Id: reg.c,v 1.58 2002/02/28 08:26:49 sebastian Exp $ */ +/* $Id: reg.c,v 1.59 2002/03/11 07:11:54 yohgaki Exp $ */ #include <stdio.h> #include "php.h" @@ -220,6 +220,7 @@ buf = emalloc(string_len); if (!buf) { php_error(E_WARNING, "Unable to allocate memory in php_ereg"); + regfree(&re); efree(subs); RETURN_FALSE; }

« previous php.cvs (#9885) next »