diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2002-12-31 09:21:12 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2002-12-31 09:21:12 +0000 |
| commit | 279dfdc141bb3fc23c8fe25ea133c021b3a586ac (patch) | |
| tree | d1945398b4cdb2809664d5aa527cfe5059c5bb7f /src/util/profile/prof_tree.c | |
| parent | e33427c7b4b006b206719bc9256c55d20860d1ec (diff) | |
| download | krb5-279dfdc141bb3fc23c8fe25ea133c021b3a586ac.tar.gz krb5-279dfdc141bb3fc23c8fe25ea133c021b3a586ac.tar.xz krb5-279dfdc141bb3fc23c8fe25ea133c021b3a586ac.zip | |
Merge some Mac-specific changes from meeroh's branch:
* profile.hin: Don't test MACINTOSH any more. On Mac OS X, include
TargetConditionals.h, set some pragmas, define COPY_RESOURCE_FORK, and error
out if TARGET_RT_MAC_CFM is defined; don't set the old m68k CFM pragmas.
Always use PROFILE_USES_PATHS code, don't test or define it.
(FSp_profile_init, FSp_profile_init_path): Declare, on Mac OS X.
* prof_int.h (NO_SYS_TYPES_H, NO_SYS_STAT_H) [macintosh]: Don't define these.
* prof_file.c: Always inclued sys/types.h and sys/stat.h.
(GetMacOSTempFilespec): Deleted.
(profile_flush_file_data) [COPY_RESOURCE_FORK]: Copy Mac resource fork from old
file to new before renaming.
(rw_access, profile_update_file_data, profile_flush_file_data,
profile_free_file_data): Assume PROFILE_USES_PATHS, don't test.
* prof_init.c (profile_ser_size, profile_ser_externalize,
profile_ser_internalize): Likewise.
(FSp_profile_init, FSp_profile_init_path): Define, on MacOS X.
* profile.exp: Add FSp_* functions.
* prof_file.c (r_access): New function.
(profile_open_file): Use it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15073 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_tree.c')
| -rw-r--r-- | src/util/profile/prof_tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/profile/prof_tree.c b/src/util/profile/prof_tree.c index 41e71ffb8..7032a34e9 100644 --- a/src/util/profile/prof_tree.c +++ b/src/util/profile/prof_tree.c @@ -501,6 +501,7 @@ get_new_file: } if ((retval = profile_update_file(iter->file))) { if (retval == ENOENT || retval == EACCES) { + /* XXX memory leak? */ iter->file = iter->file->next; skip_num = 0; retval = 0; |
