summaryrefslogtreecommitdiff
path: root/src/journal/journal-vacuum.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-09 04:03:45 +0200
committerLennart Poettering <lennart@poettering.net>2013-10-09 04:08:00 +0200
commit2ee0591d12b9e725c4585502285fd91cde682d9b (patch)
tree56a17d06c98cde33c7c84d8161746c28f634deb2 /src/journal/journal-vacuum.c
parentcac914e643a50c72893c5478f6886e0978f8fa18 (diff)
journald: fix minor memory leak
Diffstat (limited to 'src/journal/journal-vacuum.c')
-rw-r--r--src/journal/journal-vacuum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journal-vacuum.c b/src/journal/journal-vacuum.c
index c73ad8f393..8d5effb45c 100644
--- a/src/journal/journal-vacuum.c
+++ b/src/journal/journal-vacuum.c
@@ -278,6 +278,8 @@ int journal_directory_vacuum(
} else if (errno != ENOENT)
log_warning("Failed to delete %s/%s: %m", directory, p);
+ free(p);
+
continue;
}