svn rev #21881: trunk/src/util/support/
ghudson@MIT.EDU
ghudson at MIT.EDU
Wed Feb 4 14:25:54 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21881
Commit By: ghudson
Log Message:
ticket: 6360
tags: pullup
target_version: 1.7
In krb5int_utf8s_to_ucs2les, free the correct value on error, instead
of the caller-supplied result pointer.
Changed Files:
U trunk/src/util/support/utf8_conv.c
Modified: trunk/src/util/support/utf8_conv.c
===================================================================
--- trunk/src/util/support/utf8_conv.c 2009-02-04 19:15:13 UTC (rev 21880)
+++ trunk/src/util/support/utf8_conv.c 2009-02-04 19:25:51 UTC (rev 21881)
@@ -199,7 +199,7 @@
len = k5_utf8s_to_ucs2s((krb5_ucs2 *)*ucs2les, utf8s, chars + 1, 1);
if (len < 0) {
- free(ucs2les);
+ free(*ucs2les);
*ucs2les = NULL;
return EINVAL;
}
More information about the cvs-krb5
mailing list