From: Ken Raeburn Date: Sat, 28 Aug 2004 16:35:58 +0000 (+0000) Subject: * prof_file.c (profile_open_file): If an error occurs while updating from the X-Git-Tag: krb5-1.4-beta1~114 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d914460df55a66e714247a603039bd10af8c7fb1;p=krb5.git * prof_file.c (profile_open_file): If an error occurs while updating from the input file, destroy the mutex only if we're not sharing file data. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16698 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index c7b4be1e1..d5376ccdb 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +2004-08-28 Ken Raeburn + + * prof_file.c (profile_open_file): If an error occurs while + updating from the input file, destroy the mutex only if we're not + sharing file data. + 2004-08-27 Ken Raeburn * prof_parse.c (parse_std_line): Rewrite handling of whitespace in diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index 6220ca62f..2baebfbc1 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -225,7 +225,9 @@ errcode_t profile_open_file(const_profile_filespec_t filespec, retval = profile_update_file(prf); if (retval) { +#ifndef SHARE_TREE_DATA k5_mutex_destroy(&data->lock); +#endif profile_close_file(prf); return retval; }