valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0020-journald-fix-minor-memory-leak.patch

572a44
From dac4b2528173c73473b0bf6a147e47170fd344d6 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Wed, 9 Oct 2013 04:03:45 +0200
a4b143
Subject: [PATCH] journald: fix minor memory leak
a4b143
a4b143
---
a4b143
 src/journal/journal-vacuum.c | 2 ++
a4b143
 1 file changed, 2 insertions(+)
a4b143
a4b143
diff --git a/src/journal/journal-vacuum.c b/src/journal/journal-vacuum.c
a4b143
index c73ad8f..8d5effb 100644
a4b143
--- a/src/journal/journal-vacuum.c
a4b143
+++ b/src/journal/journal-vacuum.c
a4b143
@@ -278,6 +278,8 @@ int journal_directory_vacuum(
a4b143
                         } else if (errno != ENOENT)
a4b143
                                 log_warning("Failed to delete %s/%s: %m", directory, p);
a4b143
 
a4b143
+                        free(p);
a4b143
+
a4b143
                         continue;
a4b143
                 }
a4b143