X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fsymtab.c;h=1e8238d9bd7abc3848dd14ed01f56c34d0d00c25;hb=c0c85097014e5b007075ab71d9b5bee412e28dd5;hp=d656621a950526972bf636a84b6cd1e33c8ec61b;hpb=caa7fe057dd8617129577a6725d2c4e3da066857;p=idzebra-moved-to-github.git diff --git a/index/symtab.c b/index/symtab.c index d656621..1e8238d 100644 --- a/index/symtab.c +++ b/index/symtab.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: symtab.c,v $ - * Revision 1.1 1995-09-06 16:11:18 adam + * Revision 1.3 1996-10-29 14:06:54 adam + * Include zebrautl.h instead of alexutil.h. + * + * Revision 1.2 1995/09/28 09:19:44 adam + * xfree/xmalloc used everywhere. + * Extract/retrieve method seems to work for text records. + * + * Revision 1.1 1995/09/06 16:11:18 adam * Option: only one word key per file. * */ @@ -12,7 +19,6 @@ #include #include -#include #include "index.h" struct strentry { @@ -72,8 +78,8 @@ void strtab_del (struct strtab *t, { e1 = e->next; (*func)(e->name, e->info, data); - free (e->name); - free (e); + xfree (e->name); + xfree (e); } - free (t); + xfree (t); }