From 55b0a87cc5cdc89719a048507c75a6fe0bf1caf3 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 9 Feb 2009 18:35:19 +0000 Subject: 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 --- src/include/k5-unicode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-unicode.h b/src/include/k5-unicode.h index 8955a9944..0f8f12a38 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( -- cgit