Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2011 13:43:43 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r224884 - user/gabor/tre-integration/contrib/tre/lib
Message-ID:  <201108151343.p7FDhhtl012437@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Mon Aug 15 13:43:43 2011
New Revision: 224884
URL: http://svn.freebsd.org/changeset/base/224884

Log:
  - Properly free resources

Modified:
  user/gabor/tre-integration/contrib/tre/lib/regcomp.c

Modified: user/gabor/tre-integration/contrib/tre/lib/regcomp.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/regcomp.c	Mon Aug 15 13:33:28 2011	(r224883)
+++ user/gabor/tre-integration/contrib/tre/lib/regcomp.c	Mon Aug 15 13:43:43 2011	(r224884)
@@ -141,6 +141,8 @@ tre_regwcomp(regex_t *preg, const wchar_
 void
 tre_regfree(regex_t *preg)
 {
+  if (preg->shortcut != NULL)
+    tre_free_fast(preg->shortcut);
   tre_free(preg);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108151343.p7FDhhtl012437>