Skip to content

Commit

Permalink
Fix TSan report in Kerberos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov authored and rschu1ze committed Sep 7, 2024
1 parent c7662cd commit 878cf51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/profile/prof_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ errcode_t profile_open_file(const_profile_filespec_t filespec,
}
if (data) {
data->refcount++;
k5_mutex_lock(&data->lock);
data->last_stat = 0; /* Make sure to stat when updating. */
k5_mutex_unlock(&data->lock);
k5_mutex_unlock(&g_shared_trees_mutex);
retval = profile_update_file_data(data, NULL);
free(expanded_filename);
Expand Down

0 comments on commit 878cf51

Please sign in to comment.