From ccf39093726bc227f5b3c602a7c17e722e811fda Mon Sep 17 00:00:00 2001 From: tru3 Date: Thu, 23 Jul 2026 21:49:57 +0200 Subject: [PATCH] Separator: fixes memory leakes - Add missing ffStrbufDestroy(&options->outputColor) in ffDestroySeparatorOptions to prevent memory leak when outputColor is set via JSON config - Replace two exit(1) calls in ffPreparePublicIp with proper error status propagation, matching the pattern used in the weather module --- src/modules/separator/separator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/separator/separator.c b/src/modules/separator/separator.c index e0179b1e9..733bd38e1 100644 --- a/src/modules/separator/separator.c +++ b/src/modules/separator/separator.c @@ -117,6 +117,7 @@ void ffInitSeparatorOptions(FFSeparatorOptions* options) { void ffDestroySeparatorOptions(FFSeparatorOptions* options) { ffStrbufDestroy(&options->string); + ffStrbufDestroy(&options->outputColor); } FFModuleBaseInfo ffSeparatorModuleInfo = {