From 32e0f3f5bf99adedba4e5bcbb7829ea54ecbd35c Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 3 Oct 2022 19:32:25 +0100 Subject: [PATCH] Free CD ECC context when closing. --- src/close.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/close.c b/src/close.c index 0b0ec89..8c227c0 100644 --- a/src/close.c +++ b/src/close.c @@ -138,6 +138,9 @@ int aaruf_close(void* context) free(ctx->readableSectorTags); ctx->readableSectorTags = NULL; + free(ctx->eccCdContext); + ctx->eccCdContext = NULL; + // TODO: Free caches free(context);