From ada2b83bc11e9ea30e4ab31b92a3a865d5c495d0 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Sun, 27 Oct 2024 18:50:43 -0500 Subject: [PATCH] ensure to free new VRAM transfer data in NCER parser --- json.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/json.c b/json.c index 9b6bfc4..0280ef9 100644 --- a/json.c +++ b/json.c @@ -641,6 +641,14 @@ void FreeNCERCell(struct JsonToCellOptions *options) } free(options->labels); } + if (options->vramTransferEnabled) + { + for (int j = 0; j < options->cellCount; j++) + { + free(options->transferData[j]); + } + free(options->transferData); + } free(options->cells); free(options); }