X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Frecgrs.c;h=a0cdef7c9a54e146f2b1f9f2cfff24a7301dd4ae;hb=a4eec8711bc993796ed9bfc1561b360c7a44ea69;hp=613e8e32a35b7bf34e93833daa257339891fe7de;hpb=5e22c797a3b8155ec46e4680f2bc3b5ef163752b;p=idzebra-moved-to-github.git diff --git a/recctrl/recgrs.c b/recctrl/recgrs.c index 613e8e3..a0cdef7 100644 --- a/recctrl/recgrs.c +++ b/recctrl/recgrs.c @@ -1,5 +1,5 @@ -/* $Id: recgrs.c,v 1.73 2003-02-18 11:57:58 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 +/* $Id: recgrs.c,v 1.75 2003-03-08 14:27:58 pop Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -214,7 +214,7 @@ data1_termlist *xpath_termlist_by_tagpath(char *tagpath, data1_node *n) struct xpath_location_step *xp; #endif - char *pexpr = malloc(strlen(tagpath)+2); + char *pexpr = xmalloc(strlen(tagpath)+2); int ok = 0; sprintf (pexpr, "%s\n", tagpath); @@ -279,6 +279,8 @@ data1_termlist *xpath_termlist_by_tagpath(char *tagpath, data1_node *n) } xpe = xpe->next; } + + xfree(pexpr); if (ok) { logf(LOG_DEBUG,"Got it");