OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/destroy.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/destroy.c 1.6 -> 1.7

--- destroy.c    2001/07/09 17:18:20     1.6
+++ destroy.c    2001/07/31 06:33:55     1.7
@@ -45,7 +45,15 @@
 
     assert(xds->engines != NULL || xds->engines_capacity == 0);
     if (xds->engines != NULL)
+        {
+        size_t i;
+        for (i = 0; i < xds->engines_len; ++i)
+            {
+            assert(xds->engines[i].name != NULL);
+            free(xds->engines[i].name);
+            }
         free(xds->engines);
+        }
 
     free(xds);
     }

CVSTrac 2.0.1