summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-08 13:53:25 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-08 14:07:27 +0100
commitbaabc09191178a1d1a7454cd1b601a98dcb22976 (patch)
tree38d9eda38a9919ef6d27f5df8d69e2cedaa7c8f0
parent6fd4d0209827e5c3e52fa8c7144852f550f8f95c (diff)
journal: fix minor memory leak
-rw-r--r--src/journal/sd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 3ccb14a242..4579e9ee2d 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -1276,7 +1276,7 @@ static void check_network(sd_journal *j, int fd) {
static bool file_has_type_prefix(const char *prefix, const char *filename) {
const char *full, *tilded, *atted;
- full = strappend(prefix, ".journal");
+ full = strappenda(prefix, ".journal");
tilded = strappenda(full, "~");
atted = strappenda(prefix, "@");