]> andersk Git - splint.git/blobdiff - src/cstringList.c
Committed my changes (but there are several splintme errors currently).
[splint.git] / src / cstringList.c
index 479b4be394a75d95086290de5e62eebe45bc9621..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);
     }
This page took 0.049797 seconds and 4 git commands to generate.