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);
+ }
}
|
|