anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
a4b143
From e5440ffff5a2dd4f46a7f19fd2e9af4abe3e0121 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