From d4ecbc6638f40c8f167a616d1767e71c891923aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 16 Jan 2023 00:35:48 +0800 Subject: [PATCH] FFPlatform: fix memleaks --- src/util/platform/FFPlatform.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/platform/FFPlatform.c b/src/util/platform/FFPlatform.c index aa59feda9..5b4f246c4 100644 --- a/src/util/platform/FFPlatform.c +++ b/src/util/platform/FFPlatform.c @@ -66,6 +66,11 @@ void ffPlatformDestroy(FFPlatform* platform) ffStrbufDestroy(&platform->hostName); ffStrbufDestroy(&platform->domainName); ffStrbufDestroy(&platform->userShell); + + ffStrbufDestroy(&platform->systemArchitecture); + ffStrbufDestroy(&platform->systemName); + ffStrbufDestroy(&platform->systemRelease); + ffStrbufDestroy(&platform->systemVersion); } void ffPlatformPathAddAbsolute(FFlist* dirs, const char* path)