From a7158b8a13aaa405199bbc3671c9e9d3537b9da8 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 29 Apr 2004 06:29:47 +0000 Subject: [PATCH] * error_message.c (com_err_terminate): Free heap storage in et_list_dynamic git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16279 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 3 +++ src/util/et/error_message.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index d0a25cef4..2b3922a39 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -2,6 +2,9 @@ * Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variables. + * error_message.c (com_err_terminate): Free heap storage in + et_list_dynamic. + 2004-04-24 Ken Raeburn Delete support for old globally-visible linked list, necessary diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index cf8fe53aa..44a73b6c6 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -54,9 +54,14 @@ int com_err_initialize(void) void com_err_terminate(void) { + struct dynamic_et_list *e, *enext; if (! INITIALIZER_RAN(com_err_initialize) || PROGRAM_EXITING()) return; k5_mutex_destroy(&et_list_lock); + for (e = et_list_dynamic; e; e = enext) { + enext = e->next; + free(e); + } } #ifndef DEBUG_TABLE_LIST -- 2.26.2