diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-02-09 18:35:19 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-02-09 18:35:19 +0000 |
commit | 55b0a87cc5cdc89719a048507c75a6fe0bf1caf3 (patch) | |
tree | bc9529650aecf4bea4e68ba6d3e146f3ec753692 /src/include | |
parent | d1f85bcdc2b22b5fa35dac780bfd3ba57da33c25 (diff) | |
download | krb5-55b0a87cc5cdc89719a048507c75a6fe0bf1caf3.tar.gz krb5-55b0a87cc5cdc89719a048507c75a6fe0bf1caf3.tar.xz krb5-55b0a87cc5cdc89719a048507c75a6fe0bf1caf3.zip |
Change contract of krb5int_utf8_normalize and fix memory leaks
Make krb5int_utf8_normalize return a krb5_error_code and always allocate
a structure to be placed in the output parameter. Adjust the function
structure to use a cleanup handler, fixing many memory leaks.
ticket: 6378
tags: pullup
target_version: 1.7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21923 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/k5-unicode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/k5-unicode.h b/src/include/k5-unicode.h index 8955a99443..0f8f12a383 100644 --- a/src/include/k5-unicode.h +++ b/src/include/k5-unicode.h @@ -117,9 +117,9 @@ void krb5int_ucstr2upper( #define KRB5_UTF8_ARG2NFC 0x4U #define KRB5_UTF8_APPROX 0x8U -krb5_data * krb5int_utf8_normalize( - krb5_data *, +krb5_error_code krb5int_utf8_normalize( krb5_data *, + krb5_data **, unsigned); int krb5int_utf8_normcmp( |