mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Add hash map implementation for sector deduplication
This commit is contained in:
@@ -593,6 +593,14 @@ int aaruf_close(void *context)
|
||||
TRACE("Failed to write index header");
|
||||
return AARUF_ERROR_CANNOT_WRITE_HEADER;
|
||||
}
|
||||
|
||||
if(ctx->deduplicate && ctx->sectorHashMap != NULL)
|
||||
{
|
||||
TRACE("Clearing sector hash map");
|
||||
// Clear sector hash map
|
||||
free_map(ctx->sectorHashMap);
|
||||
ctx->sectorHashMap = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
TRACE("Freeing memory pointers");
|
||||
|
||||
Reference in New Issue
Block a user