teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0096-journal-fix-minor-memory-leak.patch

572a44
From 9d2d041c768d1597cd556a322e4eb3d1d623f318 Mon Sep 17 00:00:00 2001
572a44
From: Lennart Poettering <lennart@poettering.net>
572a44
Date: Fri, 8 Nov 2013 13:53:25 +0100
572a44
Subject: [PATCH] journal: fix minor memory leak
572a44
572a44
---
572a44
 src/journal/sd-journal.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
572a44
index 7700d6c..9676f0f 100644
572a44
--- a/src/journal/sd-journal.c
572a44
+++ b/src/journal/sd-journal.c
572a44
@@ -1276,7 +1276,7 @@ static void check_network(sd_journal *j, int fd) {
572a44
 static bool file_has_type_prefix(const char *prefix, const char *filename) {
572a44
         const char *full, *tilded, *atted;
572a44
 
572a44
-        full = strappend(prefix, ".journal");
572a44
+        full = strappenda(prefix, ".journal");
572a44
         tilded = strappenda(full, "~");
572a44
         atted = strappenda(prefix, "@");
572a44