summaryrefslogtreecommitdiffstats
path: root/src/collectors/log2journal/log2journal-replace.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/collectors/log2journal/log2journal-replace.c (renamed from collectors/log2journal/log2journal-replace.c)2
1 files changed, 2 insertions, 0 deletions
diff --git a/collectors/log2journal/log2journal-replace.c b/src/collectors/log2journal/log2journal-replace.c
index 429d615da..7075d109d 100644
--- a/collectors/log2journal/log2journal-replace.c
+++ b/src/collectors/log2journal/log2journal-replace.c
@@ -74,6 +74,7 @@ bool replace_pattern_set(REPLACE_PATTERN *rp, const char *pattern) {
log2stderr("Error: Failed to add replacement node for variable.");
return false;
}
+ freez(variable_name);
current = end + 1; // Move past the variable
}
@@ -97,6 +98,7 @@ bool replace_pattern_set(REPLACE_PATTERN *rp, const char *pattern) {
log2stderr("Error: Failed to add replacement node for text.");
return false;
}
+ freez(text);
}
}