ryantimwilson / rpms / systemd

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