summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-14 19:33:01 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-19 23:07:18 +0200
commit3741b696f41ef8ecd646b0dc77ef3a29b6741a51 (patch)
tree146109c37c274ad9cafa46e1fbd1a1c7db50a484 /src
parentac5b0c13d8023745c0fbdaaa95dcec5b7b21d1e2 (diff)
journal: fix bad memory freeing
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-vacuum.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/journal/journal-vacuum.c b/src/journal/journal-vacuum.c
index a394066cb4..c7ecd360b9 100644
--- a/src/journal/journal-vacuum.c
+++ b/src/journal/journal-vacuum.c
@@ -217,13 +217,11 @@ int journal_directory_vacuum(
de->d_name[q-8-16-1-16-1] = 0;
if (sd_id128_from_string(de->d_name + q-8-16-1-16-1-32, &seqnum_id) < 0) {
- free(p);
n_active_files++;
continue;
}
if (sscanf(de->d_name + q-8-16-1-16, "%16llx-%16llx.journal", &seqnum, &realtime) != 2) {
- free(p);
n_active_files++;
continue;
}
@@ -253,7 +251,6 @@ int journal_directory_vacuum(
}
if (sscanf(de->d_name + q-1-8-16-1-16, "%16llx-%16llx.journal~", &realtime, &tmp) != 2) {
- free(p);
n_active_files ++;
continue;
}