anitazha / rpms / systemd

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