* src/lib/krb5/krb/copy_data.c (krb5int_copy_data_contents): Don't
free outdata on malloc failure; we didn't allocate outdata.
ticket: new
target_version: 1.6
tags: pullup
component: krb5-libs
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18865
dc483132-0cff-0310-8789-
dd5450dbe970
if (!indata) {
return EINVAL;
}
-
outdata->length = indata->length;
if (outdata->length) {
if (!(outdata->data = malloc(outdata->length))) {
- krb5_xfree(outdata);
return ENOMEM;
}
memcpy((char *)outdata->data, (char *)indata->data, outdata->length);