From 7b0e400710c3e451f9c3f712652780406e602fb2 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 30 Jan 2024 02:36:32 -0800 Subject: [PATCH] Util: Fix leak in SfoWrite --- src/util/sfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/sfo.c b/src/util/sfo.c index 21ffd0f0f..339da1d8e 100644 --- a/src/util/sfo.c +++ b/src/util/sfo.c @@ -162,6 +162,7 @@ bool SfoWrite(struct Table* sfo, struct VFile* vf) { sortedEntries[i].size = 4; break; default: + free(sortedEntries); return false; } }