From b06085915de18a5cff7682812edf71436f3cc17a Mon Sep 17 00:00:00 2001 From: suchmememanyskill Date: Sat, 17 Jul 2021 23:26:37 +0200 Subject: [PATCH] frii memory leak fix --- source/fs/menus/explorer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/fs/menus/explorer.c b/source/fs/menus/explorer.c index efe4631..f06679f 100644 --- a/source/fs/menus/explorer.c +++ b/source/fs/menus/explorer.c @@ -74,6 +74,7 @@ void FileExplorer(char *path){ res = 0; res = newMenu(&entries, res, 60, 42, ENABLEB | ENABLEPAGECOUNT, (int)fileVec.count); + vecFree(entries); char *oldPath = storedPath; @@ -125,6 +126,7 @@ void FileExplorer(char *path){ else if (res < ARR_LEN(topEntries)) { if (!strcmp(storedPath, path)){ clearFileVector(&fileVec); + free(storedPath); return; }