summaryrefslogtreecommitdiff
path: root/ext/ereg
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-11 15:29:37 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-11 15:29:37 +0400
commit2614d945f8c6bd9510f2d145b5c9ee0f3fc093cc (patch)
treebe7ffcee928aab03efc90553a85bf31f30f722c5 /ext/ereg
parent33c731d94f236aacd16cc1383f13d985e429b773 (diff)
downloadphp-git-2614d945f8c6bd9510f2d145b5c9ee0f3fc093cc.tar.gz
Fixed memory leaks
Diffstat (limited to 'ext/ereg')
-rw-r--r--ext/ereg/ereg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index 1547d96790..a6496502f8 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -209,6 +209,7 @@ static void _free_ereg_cache(zval *zv)
{
reg_cache *rc = Z_PTR_P(zv);
regfree(&rc->preg);
+ free(rc);
}
#undef regfree