diff options
| author | Danilo Almeida <dalmeida@mit.edu> | 1999-08-05 19:37:54 +0000 |
|---|---|---|
| committer | Danilo Almeida <dalmeida@mit.edu> | 1999-08-05 19:37:54 +0000 |
| commit | e5dc7787bf04e154a08deb684cafc4d43d953905 (patch) | |
| tree | b8f8ee6e1a5ec2bf9038deeabc55414067b4c0be /src/util | |
| parent | cb14d710bcbc8da221e8dee3f53b873a0f9a270a (diff) | |
| download | krb5-e5dc7787bf04e154a08deb684cafc4d43d953905.tar.gz krb5-e5dc7787bf04e154a08deb684cafc4d43d953905.tar.xz krb5-e5dc7787bf04e154a08deb684cafc4d43d953905.zip | |
Add profile_free_string to free strings allocated by profile_get_string
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11622 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/profile/ChangeLog | 6 | ||||
| -rw-r--r-- | src/util/profile/prof_get.c | 8 | ||||
| -rw-r--r-- | src/util/profile/profile.hin | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 9366adfd8..46c888b51 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +1999-08-05 Danilo Almeida <dalmeida@mit.edu> + + * prof_get.c (profile_free_string): + * profile.hin: Add profile_free_string to free strings allocated + by profile_get_string. + 1999-08-03 Alexandra Ellwood <lxs@mit.edu> * prof_file.c (profile_open_file) diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index 2589b24e4..2c08c2049 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -241,6 +241,14 @@ profile_get_string(profile, name, subname, subsubname, return 0; } +KRB5_DLLIMP void KRB5_CALLCONV +profile_free_string(value) + char *value; +{ + if (value) + free(value); +} + KRB5_DLLIMP errcode_t KRB5_CALLCONV profile_get_integer(profile, name, subname, subsubname, def_val, ret_int) diff --git a/src/util/profile/profile.hin b/src/util/profile/profile.hin index 420b955d4..177e213f9 100644 --- a/src/util/profile/profile.hin +++ b/src/util/profile/profile.hin @@ -86,6 +86,10 @@ KRB5_DLLIMP long KRB5_CALLCONV profile_get_string PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, const char *def_val, char **ret_string)); + +KRB5_DLLIMP void KRB5_CALLCONV profile_free_string + PROTOTYPE ((char *value)); + KRB5_DLLIMP long KRB5_CALLCONV profile_get_integer PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, int def_val, |
