* prof_init.c (profile_init): Don't add error table here.
* prof_file.c (profile_library_initializer): Add it here.
(profile_library_finalizer): Remove it here.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16815
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-10-12 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_init.c (profile_init): Don't add error table here.
+ * prof_file.c (profile_library_initializer): Add it here.
+ (profile_library_finalizer): Remove it here.
+
2004-09-28 Ken Raeburn <raeburn@mit.edu>
* prof_file.c (profile_dereference_data_locked): New function.
int profile_library_initializer(void)
{
+ add_error_table(&et_prof_error_table);
#ifdef SHARE_TREE_DATA
return k5_mutex_finish_init(&g_shared_trees_mutex);
#else
#ifdef SHARE_TREE_DATA
k5_mutex_destroy(&g_shared_trees_mutex);
#endif
+ remove_error_table(&et_prof_error_table);
}
static void profile_free_file_data(prf_data_t);
prf_file_t new_file, last = 0;
errcode_t retval = 0;
- initialize_prof_error_table();
-
profile = malloc(sizeof(struct _profile_t));
if (!profile)
return ENOMEM;