]> andersk Git - splint.git/blobdiff - src/cstringList.c
Fixed configuration problem (hopefully).
[splint.git] / src / cstringList.c
index 145c8d2339120738d549097c6868e1c86388ff1f..bdd2e5746750ae55f9979568d4af416f717e32ac 100644 (file)
@@ -266,8 +266,17 @@ cstringList_free (cstringList s)
 {
   if (cstringList_isDefined (s))
     {
+      int i;
+
       DPRINTF (("cstringList free: [%p] %s",
                s, cstringList_unparse (s)));
+
+      /* evans 2002-07-12: this was missing, not detected because of reldef */
+      for (i = 0; i < s->nelements; i++)
+       {
+         cstring_free (s->elements[i]);
+       }
+
       sfree (s->elements);
       sfree (s);
     }
@@ -339,3 +348,16 @@ cstringList_get (cstringList s, int index)
   llassertretnull (index < s->nelements);
   return s->elements[index];
 }
+
+ob_mstring *
+cstringList_getElements (cstringList s)
+{
+  if (cstringList_isDefined (s))
+    {
+      /*@i423@*/ return s->elements;
+    }
+  else
+    {
+      return NULL;
+    }
+}
This page took 0.059726 seconds and 4 git commands to generate.