OSSP CVS Repository

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

ossp-pkg/xds/destroy.c 1.1 -> 1.2

--- destroy.c    2001/07/04 15:58:51     1.1
+++ destroy.c    2001/07/04 16:21:26     1.2
@@ -25,8 +25,16 @@
    SUCH DAMAGE.
 */
 
+#include <stdlib.h>
+#include <errno.h>
+#include <assert.h>
 #include "internal.h"
 
 void xds_destroy(xds_t* xds)
     {
+    assert(xds != NULL);
+    if (xds != NULL)
+        {
+        free(xds);
+        }
     }

CVSTrac 2.0.1