X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_handle.c;h=723a08100fc8e1651e37c7ffa25fb25c1bc7d876;hb=e63cb633d580e1a364de81d4f24fb2c9fa70e279;hp=6f03aa52e03280833d62e6111ffec0a9596b10ba;hpb=02266b68e2e2c86d8a8467ee56721926b365d2d0;p=idzebra-moved-to-github.git diff --git a/data1/d1_handle.c b/data1/d1_handle.c index 6f03aa5..723a081 100644 --- a/data1/d1_handle.c +++ b/data1/d1_handle.c @@ -1,6 +1,6 @@ -/* $Id: d1_handle.c,v 1.2 2002-10-22 13:19:50 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 - Index Data Aps +/* $Id: d1_handle.c,v 1.7 2005-01-15 19:38:18 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -24,7 +24,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include struct data1_handle_info { WRBUF wrbuf; @@ -87,6 +87,13 @@ void data1_destroy (data1_handle dh) { if (!dh) return; + + /* *ostrich* + We need to destroy DFAs, in xp_element (xelm) definitions + pop, 2002-12-13 + */ + data1_absyn_destroy(dh); + wrbuf_free (dh->wrbuf, 1); if (dh->tab_path) xfree (dh->tab_path); @@ -109,14 +116,14 @@ WRBUF data1_get_wrbuf (data1_handle dp) char **data1_get_read_buf (data1_handle dp, int **lenp) { *lenp = &dp->read_len; - yaz_log (LOG_DEBUG, "data1_get_read_buf lenp=%u", **lenp); + yaz_log (YLOG_DEBUG, "data1_get_read_buf lenp=%u", **lenp); return &dp->read_buf; } char **data1_get_map_buf (data1_handle dp, int **lenp) { *lenp = &dp->map_len; - yaz_log (LOG_DEBUG, "data1_get_map_buf lenp=%u", **lenp); + yaz_log (YLOG_DEBUG, "data1_get_map_buf lenp=%u", **lenp); return &dp->map_buf; }