chiark / gitweb /
journal: parse fsprg seed
[elogind.git] / src / journal / journal-file.c
index 81952a08eeac72cf6d2e853f51d6bddd94b5d62d..3bb1e90fb324b9f86b3a8c76c87cf641a480fa0e 100644 (file)
@@ -96,8 +96,12 @@ void journal_file_close(JournalFile *f) {
 #endif
 
 #ifdef HAVE_GCRYPT
 #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);
 
         if (f->hmac)
                 gcry_md_close(f->hmac);