* Makefile.in (LIBINITFUNC, LIBFINIFUNC): New variables.
+ * error_message.c (com_err_terminate): Free heap storage in
+ et_list_dynamic.
+
2004-04-24 Ken Raeburn <raeburn@mit.edu>
Delete support for old globally-visible linked list, necessary
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