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
This commit is contained in:
tru3
2026-07-23 21:49:57 +02:00
committed by Carter Li
parent 18eef29d0a
commit ccf3909372
+1
View File
@@ -117,6 +117,7 @@ void ffInitSeparatorOptions(FFSeparatorOptions* options) {
void ffDestroySeparatorOptions(FFSeparatorOptions* options) {
ffStrbufDestroy(&options->string);
ffStrbufDestroy(&options->outputColor);
}
FFModuleBaseInfo ffSeparatorModuleInfo = {