ossp-pkg/xds/destroy.c 1.6 -> 1.7
--- destroy.c 2001/07/09 17:18:20 1.6
+++ destroy.c 2001/07/31 06:33:55 1.7
@@ -45,7 +45,15 @@
assert(xds->engines != NULL || xds->engines_capacity == 0);
if (xds->engines != NULL)
+ {
+ size_t i;
+ for (i = 0; i < xds->engines_len; ++i)
+ {
+ assert(xds->engines[i].name != NULL);
+ free(xds->engines[i].name);
+ }
free(xds->engines);
+ }
free(xds);
}
|
|