projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b69bfd
)
sd-journal: fix bad memory access
author
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Oct 2012 20:59:28 +0000
(22:59 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Oct 2012 20:59:28 +0000
(22:59 +0200)
src/journal/sd-journal.c
patch
|
blob
|
history
diff --git
a/src/journal/sd-journal.c
b/src/journal/sd-journal.c
index
88b382f
..
99ac1fd
100644
(file)
--- 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;
}