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

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

Log:
  - Use TRE-specific xfree() instead of free()

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

Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c	Mon Aug 15 18:04:42 2011	(r224895)
+++ user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c	Mon Aug 15 18:07:41 2011	(r224896)
@@ -263,7 +263,7 @@ static int	fastcmp(const void *, const v
 	    for (int i = 0; i < plen; i++)				\
 	      wp[i] = towlower(pat[i]);					\
 	    _CALC_BMGS(arr, wp, plen);					\
-	    free(wp);							\
+	    xfree(wp);							\
 	  }								\
 	else								\
 	  _CALC_BMGS(arr, pat, plen);					\
@@ -278,7 +278,7 @@ static int	fastcmp(const void *, const v
 	    for (int i = 0; i < plen; i++)				\
 	      p[i] = tolower(pat[i]);					\
 	    _CALC_BMGS(arr, p, plen);					\
-	    free(p);							\
+	    xfree(p);							\
 	  }								\
 	else								\
 	  _CALC_BMGS(arr, pat, plen);					\
@@ -321,7 +321,7 @@ static int	fastcmp(const void *, const v
     for (int i = 0; i <= plen - 2; i++)					\
       arr[plen - 1 - suff[i]] = plen - 1 - i;				\
 									\
-    free(suff);								\
+    xfree(suff);							\
   }
 
 /*
@@ -634,9 +634,9 @@ tre_free_fast(fastmatch_t *fg)
 
 #ifdef TRE_WCHAR
   hashtable_free(fg->qsBc_table);
-  free(fg->wpattern);
+  xfree(fg->wpattern);
 #endif
-  free(fg->pattern);
+  xfree(fg->pattern);
 }
 
 /*



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