summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-16 20:51:43 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-16 21:00:47 +0200
commitb7c9ae91d111b3e89d1ffc00e08f9ed97a8ff5db (patch)
tree4159b77fd7b977222afbfd0b7ff536fa35c33545 /src/journal/journal-file.c
parent2dee23ebe09965308c67a661ed0a8d2cc0ae1d5f (diff)
journal: parse fsprg seed
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 81952a08ee..3bb1e90fb3 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -96,8 +96,12 @@ void journal_file_close(JournalFile *f) {
#endif
#ifdef HAVE_GCRYPT
- if (f->fsprg_header)
- munmap(f->fsprg_header, PAGE_ALIGN(f->fsprg_size));
+ if (f->fsprg_file)
+ munmap(f->fsprg_file, PAGE_ALIGN(f->fsprg_file_size));
+ else if (f->fsprg_state)
+ free(f->fsprg_state);
+
+ free(f->fsprg_seed);
if (f->hmac)
gcry_md_close(f->hmac);