Index: ossp-pkg/xds/destroy.c RCS File: /v/ossp/cvs/ossp-pkg/xds/Attic/destroy.c,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/xds/Attic/destroy.c,v' 2>/dev/null --- 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);