Merge pull request #1533 from tpunix/master

DLC bug fix
This commit is contained in:
Henrik Rydgård 2013-04-26 00:13:00 -07:00
commit a9e26a90cb

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;
}