OSSP CVS Repository

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

ossp-pkg/xds/destroy.c 1.4 -> 1.5

--- destroy.c    2001/07/08 14:21:08     1.4
+++ destroy.c    2001/07/08 15:22:00     1.5
@@ -39,6 +39,9 @@
 
     /* Free allocated memory. */
 
-    free(xds->engines);
+    assert(xds->engines != NULL || xds->engines_capacity == 0);
+    if (xds->engines != NULL)
+        free(xds->engines);
+
     free(xds);
     }

CVSTrac 2.0.1