mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix theoretical leak discovered by coverity
This was introduced when we started checking the return from ipadb_get_context() to silence another coverity report. That condition can never be true in this function but whatever ... let's silence Coverity once again :)
This commit is contained in:
@@ -374,6 +374,7 @@ static krb5_error_code ipadb_parse_ldap_entry(krb5_context kcontext,
|
|||||||
* krb5_db_entry in kdb.h */
|
* krb5_db_entry in kdb.h */
|
||||||
ipactx = ipadb_get_context(kcontext);
|
ipactx = ipadb_get_context(kcontext);
|
||||||
if (!ipactx) {
|
if (!ipactx) {
|
||||||
|
free(entry);
|
||||||
return KRB5_KDB_DBNOTINITED;
|
return KRB5_KDB_DBNOTINITED;
|
||||||
}
|
}
|
||||||
lcontext = ipactx->lcontext;
|
lcontext = ipactx->lcontext;
|
||||||
|
|||||||
Reference in New Issue
Block a user