summaryrefslogtreecommitdiff
path: root/ext/standard/reg.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-03-11 07:11:54 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-03-11 07:11:54 +0000
commit7bccaefc418212641098556c817117a5687acdb2 (patch)
tree331426c69b1029560e645c4033d85301e165e1e4 /ext/standard/reg.c
parent8b8fcff81b391d89cb791be7d34dc077526ac971 (diff)
downloadphp-git-7bccaefc418212641098556c817117a5687acdb2.tar.gz
Small memory leak fix that does not matter much.
Diffstat (limited to 'ext/standard/reg.c')
-rw-r--r--ext/standard/reg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/reg.c b/ext/standard/reg.c
index 6fff6a5352..02e39e401f 100644
--- a/ext/standard/reg.c
+++ b/ext/standard/reg.c
@@ -220,6 +220,7 @@ static void php_ereg(INTERNAL_FUNCTION_PARAMETERS, int icase)
buf = emalloc(string_len);
if (!buf) {
php_error(E_WARNING, "Unable to allocate memory in php_ereg");
+ regfree(&re);
efree(subs);
RETURN_FALSE;
}