diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2005-01-14 04:40:16 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2005-01-14 04:40:16 +0000 |
| commit | e9e0c8766bc7343b03ffd05abe08362cb6d755a9 (patch) | |
| tree | 2e0d1a808ec4dca37aad24d32cc2930d40944e0f /src | |
| parent | 2bc5304880b85b21cfbc42e33a62afa0dfcebbea (diff) | |
| download | krb5-e9e0c8766bc7343b03ffd05abe08362cb6d755a9.tar.gz krb5-e9e0c8766bc7343b03ffd05abe08362cb6d755a9.tar.xz krb5-e9e0c8766bc7343b03ffd05abe08362cb6d755a9.zip | |
* prof_file.c (profile_open_file): If mutex creation fails, free storage
directly instead of calling profile_close_file.
ticket: 2878
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17035 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/profile/ChangeLog | 2 | ||||
| -rw-r--r-- | src/util/profile/prof_file.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 2247776e6..985664014 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -2,6 +2,8 @@ * 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> diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index dac4e8a1f..9b0048c9c 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -272,7 +272,8 @@ errcode_t profile_open_file(const_profile_filespec_t filespec, retval = k5_mutex_init(&data->lock); if (retval) { - profile_close_file(prf); + free(data); + free(prf); return retval; } |
