anitazha / rpms / systemd

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