(krb5_copy_data): avoid exposing free-ed memory on error. Found by IBM checker.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16937 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-02 01:06:07 +00:00
parent a699632a9e
commit 6d5788be42

View File

@@ -114,6 +114,7 @@ krb5_copy_data(krb5_context context,
if(ret) {
krb5_clear_error_string (context);
free(*outdata);
*outdata = NULL;
}
return ret;
}