InitSystem: fix memory leaks

This commit is contained in:
李通洲
2024-06-06 09:25:02 +08:00
parent 2e865ad511
commit 8440142d75
+2
View File
@@ -46,6 +46,7 @@ void ffPrintInitSystem(FFInitSystemOptions* options)
exit:
ffStrbufDestroy(&result.name);
ffStrbufDestroy(&result.exe);
ffStrbufDestroy(&result.version);
}
bool ffParseInitSystemCommandOptions(FFInitSystemOptions* options, const char* key, const char* value)
@@ -109,6 +110,7 @@ void ffGenerateInitSystemJsonResult(FF_MAYBE_UNUSED FFInitSystemOptions* options
exit:
ffStrbufDestroy(&result.name);
ffStrbufDestroy(&result.exe);
ffStrbufDestroy(&result.version);
}
void ffPrintInitSystemHelpFormat(void)