From owner-svn-src-user@FreeBSD.ORG Mon Aug 15 18:07:41 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE019106566B; Mon, 15 Aug 2011 18:07:41 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DE5A38FC08; Mon, 15 Aug 2011 18:07:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7FI7fL0021498; Mon, 15 Aug 2011 18:07:41 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7FI7fon021496; Mon, 15 Aug 2011 18:07:41 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201108151807.p7FI7fon021496@svn.freebsd.org> From: Gabor Kovesdan Date: Mon, 15 Aug 2011 18:07:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224896 - user/gabor/tre-integration/contrib/tre/lib X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 18:07:42 -0000 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); } /*