mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Memory leak when ISC_MEM_TRACKLINES is defined.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mem.c,v 1.65 2000/10/20 02:21:56 marka Exp $ */
|
/* $Id: mem.c,v 1.66 2000/11/25 06:40:54 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -712,6 +712,16 @@ destroy(isc_mem_t *ctx) {
|
|||||||
#ifdef ISC_MEM_TRACKLINES
|
#ifdef ISC_MEM_TRACKLINES
|
||||||
if (ctx->checkfree)
|
if (ctx->checkfree)
|
||||||
INSIST(ISC_LIST_EMPTY(ctx->debuglist));
|
INSIST(ISC_LIST_EMPTY(ctx->debuglist));
|
||||||
|
else {
|
||||||
|
debuglink_t *dl;
|
||||||
|
|
||||||
|
for (dl = ISC_LIST_HEAD(ctx->debuglist);
|
||||||
|
dl != NULL;
|
||||||
|
dl = ISC_LIST_HEAD(ctx->debuglist)) {
|
||||||
|
ISC_LIST_UNLINK(ctx->debuglist, dl, link);
|
||||||
|
free(dl);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
INSIST(ctx->references == 0);
|
INSIST(ctx->references == 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user