diff cinst/nss-secitemlist.c @ 493:48d7b956bd98

Change loop order of installation to only call NSS_Initialize once per db
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 24 Apr 2014 17:04:49 +0000
parents 17e1c8f37d72
children f89b41fa7048
line wrap: on
line diff
--- a/cinst/nss-secitemlist.c	Thu Apr 24 16:06:00 2014 +0000
+++ b/cinst/nss-secitemlist.c	Thu Apr 24 17:04:49 2014 +0000
@@ -20,6 +20,20 @@
   *list = newlelt;
 }
 
+void
+seciteml_free (seciteml_t **list)
+{
+  seciteml_t *oldlelt;
+
+  while (*list != NULL)
+    {
+      oldlelt = *list;
+      *list = oldlelt->next;
+      free(oldlelt->item);
+      free(oldlelt);
+    }
+}
+
 SECItem *seciteml_pop (seciteml_t **list)
 {
   seciteml_t *oldlelt;

http://wald.intevation.org/projects/trustbridge/