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