ticket: 2879
version_fixed: 1.4
component: krb5-libs
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17054
dc483132-0cff-0310-8789-
dd5450dbe970
* prof_file.c (profile_free_file_data): Destroy mutex before
freeing containing structure.
- (profile_open_file): If mutex creation fails, free storage
- directly instead of calling profile_close_file.
2004-12-14 Ken Raeburn <raeburn@mit.edu>
}
}
}
- if (data->root)
- profile_free_node(data->root);
- if (data->comment)
- free(data->comment);
- data->magic = 0;
- free(data);
+ if (data->root)
+ profile_free_node(data->root);
+ if (data->comment)
+ free(data->comment);
+ data->magic = 0;
+ k5_mutex_destroy(&data->lock);
+ free(data);
scan_shared_trees_locked();
}