mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Free allocated memory when returning error in aaruf_read_sector_long().
This commit is contained in:
@@ -315,7 +315,11 @@ int32_t aaruf_read_sector_long(void* context, uint64_t sectorAddress, uint8_t* d
|
||||
|
||||
res = aaruf_read_sector(context, sectorAddress, bareData, &bareLength);
|
||||
|
||||
if(res < AARUF_STATUS_OK) return res;
|
||||
if(res < AARUF_STATUS_OK)
|
||||
{
|
||||
free(bareData);
|
||||
return res;
|
||||
}
|
||||
|
||||
trkFound = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user