Updated information about YAZ.
[yaz-moved-to-github.git] / ccl / cclqual.c
index 000c33b..9777521 100644 (file)
  * 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
 #include <assert.h>
 #include <string.h>
 
-#include <ccl.h>
+#include <yaz/ccl.h>
 
 /* 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;
 }