Free error message with krb5_free_error_message().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23205 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-05-29 02:13:26 +00:00
parent 577ff0f5c0
commit a4de25665b

View File

@@ -47,7 +47,7 @@ _warnerr(krb5_context context, int do_errtext,
char xfmt[7] = ""; char xfmt[7] = "";
const char *args[2], **arg; const char *args[2], **arg;
char *msg = NULL; char *msg = NULL;
char *err_str = NULL; const char *err_str = NULL;
args[0] = args[1] = NULL; args[0] = args[1] = NULL;
arg = args; arg = args;
@@ -82,7 +82,7 @@ _warnerr(krb5_context context, int do_errtext,
else else
warnx(xfmt, args[0], args[1]); warnx(xfmt, args[0], args[1]);
free(msg); free(msg);
free(err_str); krb5_free_error_message(err_str);
return 0; return 0;
} }