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 authored and Carter Li committed 2026-07-24 08:50:59 +08:00
1 parent 18eef29d0a
commit ccf3909372
1 file changed
+1
+1
View File
@@ -117,6 +117,7 @@ void ffInitSeparatorOptions(FFSeparatorOptions* options) {
void ffDestroySeparatorOptions(FFSeparatorOptions* options) {
ffStrbufDestroy(&options->string);
ffStrbufDestroy(&options->outputColor);
}
FFModuleBaseInfo ffSeparatorModuleInfo = {