X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ccl%2Fcclqual.c;h=9777521b459fa68aafbc2bbe73fe0a517b4a7cc5;hb=62bcf7a811cd3151ac10f93317c9ddfa6b16f539;hp=000c33b3900cb584a68147e1b06217ad6aaa6aa7;hpb=044d170f0a963555486df54653cd2fdc5815928b;p=yaz-moved-to-github.git diff --git a/ccl/cclqual.c b/ccl/cclqual.c index 000c33b..9777521 100644 --- a/ccl/cclqual.c +++ b/ccl/cclqual.c @@ -45,7 +45,16 @@ * Europagate, 1995 * * $Log: cclqual.c,v $ - * Revision 1.9 1998-02-11 11:53:33 adam + * Revision 1.12 1999-11-30 13:47:11 adam + * Improved installation. Moved header files to include/yaz. + * + * Revision 1.11 1999/03/31 11:15:37 adam + * Fixed memory leaks in ccl_find_str and ccl_qual_rm. + * + * Revision 1.10 1998/07/07 15:49:40 adam + * Added braces to avoid warning. + * + * Revision 1.9 1998/02/11 11:53:33 adam * Changed code so that it compiles as C++. * * Revision 1.8 1997/09/29 08:56:38 adam @@ -98,7 +107,7 @@ #include #include -#include +#include /* Definition of CCL_bibset pointer */ struct ccl_qualifiers { @@ -188,6 +197,7 @@ void ccl_qual_rm (CCL_bibset *b) free (attr); } q1 = q->next; + free (q->name); free (q); } free (*b); @@ -211,6 +221,7 @@ struct ccl_rpn_attr *ccl_qual_search (CCL_parser cclp, return NULL; for (q = cclp->bibset->list; q; q = q->next) if (strlen(q->name) == len) + { if (cclp->ccl_case_sensitive) { if (!memcmp (name, q->name, len)) @@ -221,6 +232,7 @@ struct ccl_rpn_attr *ccl_qual_search (CCL_parser cclp, if (!ccl_memicmp (name, q->name, len)) return q->attr_list; } + } return NULL; }