journald: fix trivial memleak

Fixes #5516.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-05-19 19:15:26 -04:00
parent 4b29a7f41f
commit c6e9e16f77
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -2177,6 +2177,8 @@ void server_done(Server *s) {
free(s->tty_path);
free(s->cgroup_root);
free(s->hostname_field);
free(s->runtime_storage.path);
free(s->system_storage.path);
if (s->mmap)
mmap_cache_unref(s->mmap);
+1 -1
View File
@@ -61,7 +61,7 @@ typedef struct JournalStorageSpace {
typedef struct JournalStorage {
const char *name;
const char *path;
char *path;
JournalMetrics metrics;
JournalStorageSpace space;