OSSP CVS Repository

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

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

--- destroy.c    2001/07/08 15:22:00     1.5
+++ destroy.c    2001/07/09 17:18:20     1.6
@@ -39,6 +39,10 @@
 
     /* Free allocated memory. */
 
+    assert(xds->buffer != NULL || (xds->buffer_capacity == 0 && xds->buffer_len == 0));
+    if (xds->buffer != NULL && xds->we_own_buffer)
+        free(xds->buffer);
+
     assert(xds->engines != NULL || xds->engines_capacity == 0);
     if (xds->engines != NULL)
         free(xds->engines);

CVSTrac 2.0.1