keys: Protect against free-before-use of kip

This commit is contained in:
shchmue 2019-12-07 17:01:16 -07:00
parent 7a486e547e
commit 0459e813cf
1 changed files with 4 additions and 2 deletions

View File

@ -483,9 +483,11 @@ get_tsec: ;
}
}
pkg2_done:
if (ki) {
free(ki->kip1);
free(pkg2);
free(ki);
}
free(pkg2);
u8 *rights_ids = NULL, *titlekeys = NULL;