From: Lennart Poettering Date: Tue, 16 Oct 2012 20:59:28 +0000 (+0200) Subject: sd-journal: fix bad memory access X-Git-Tag: v195~87 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=44a5fa34d9f9a5050cdf4a497e6ccf5af2d1678d sd-journal: fix bad memory access --- diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 88b382f4c..99ac1fd4e 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1258,11 +1258,13 @@ static int remove_file(sd_journal *j, const char *prefix, const char *filename) return 0; hashmap_remove(j->files, f->path); + + log_debug("File %s got removed.", f->path); + journal_file_close(f); j->current_invalidate_counter ++; - log_debug("File %s got removed.", f->path); return 0; }