[iso] enable extra libcdio debugging with Alt-.

* Also fix 2 memory leaks
This commit is contained in:
Pete Batard 2020-05-12 14:13:44 +01:00
parent bcca9144b7
commit 4bf69215bf
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 11 additions and 14 deletions

View file

@ -977,7 +977,7 @@ static BOOL WriteSBR(HANDLE hPhysicalDrive)
r = write_data(fp, br_size, buf, (uint64_t)size);
safe_free(grub2_buf);
if (sub_type == BT_NON_BOOTABLE)
if (sub_type == BT_MAX)
safe_free(buf);
return (r != 0);
}