From 67564dfa2cf220bba2e2f1dad6000a9131a95bf3 Mon Sep 17 00:00:00 2001 From: apocelipes Date: Mon, 8 Apr 2024 09:10:03 +0800 Subject: [PATCH] Platform: fix a memory leak (#782) --- src/util/platform/FFPlatform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/platform/FFPlatform.c b/src/util/platform/FFPlatform.c index b81adc3c6..8ce979044 100644 --- a/src/util/platform/FFPlatform.c +++ b/src/util/platform/FFPlatform.c @@ -52,6 +52,7 @@ void ffPlatformDestroy(FFPlatform* platform) FF_LIST_FOR_EACH(FFstrbuf, dir, platform->dataDirs) ffStrbufDestroy(dir); ffListDestroy(&platform->dataDirs); + ffStrbufDestroy(&platform->exePath); ffStrbufDestroy(&platform->userName); ffStrbufDestroy(&platform->hostName);