From 2614d945f8c6bd9510f2d145b5c9ee0f3fc093cc Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 11 Apr 2014 15:29:37 +0400 Subject: Fixed memory leaks --- ext/ereg/ereg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/ereg') 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 -- cgit v1.2.1