From d914460df55a66e714247a603039bd10af8c7fb1 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 28 Aug 2004 16:35:58 +0000 Subject: [PATCH] * 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 --- src/util/profile/ChangeLog | 6 ++++++ src/util/profile/prof_file.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index c7b4be1e1e..d5376ccdb0 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 6220ca62f3..2baebfbc17 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; } -- 2.47.3