mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
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:
@@ -117,6 +117,7 @@ void ffInitSeparatorOptions(FFSeparatorOptions* options) {
|
||||
|
||||
void ffDestroySeparatorOptions(FFSeparatorOptions* options) {
|
||||
ffStrbufDestroy(&options->string);
|
||||
ffStrbufDestroy(&options->outputColor);
|
||||
}
|
||||
|
||||
FFModuleBaseInfo ffSeparatorModuleInfo = {
|
||||
|
||||
Reference in New Issue
Block a user