DLC bug fix

This commit is contained in:
tpu 2013-04-26 12:05:21 +08:00
parent 641b78ab67
commit 28e61dcda7

View file

@ -702,8 +702,10 @@ int pgd_decrypt_block(PGD_DESC *pgd, int block)
int pgd_close(PGD_DESC *pgd)
{
free(pgd->block_buf);
free(pgd);
if(pgd){
free(pgd->block_buf);
free(pgd);
}
return 0;
}