free krb5_storage when dne
This commit is contained in:
@@ -503,9 +503,13 @@ mdb_value2entry(krb5_context context, krb5_data *data, krb5_kvno target_kvno,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
krb5_storage_free(sp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
krb5_storage_free(sp);
|
||||||
|
|
||||||
if (ret == HEIM_ERR_EOF)
|
if (ret == HEIM_ERR_EOF)
|
||||||
/* Better error code than "end of file" */
|
/* Better error code than "end of file" */
|
||||||
ret = HEIM_ERR_BAD_HDBENT_ENCODING;
|
ret = HEIM_ERR_BAD_HDBENT_ENCODING;
|
||||||
|
Reference in New Issue
Block a user