diff options
author | Michal Sekletar <msekleta@redhat.com> | 2012-10-26 14:11:37 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-10-28 02:14:40 +0200 |
commit | 4a207bb2a5eca181209ca273c76e32bcc90c99c8 (patch) | |
tree | bc88e68fe393c2d02fbf029808a331b4efaa3fe1 /src/journal | |
parent | aa6eba407be2c23882bf41a1beafbbd1352f7ab3 (diff) |
journal: fix memleak, call set_free before return
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/coredumpctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index 5b494e340b..311c18b6ab 100644 --- a/src/journal/coredumpctl.c +++ b/src/journal/coredumpctl.c @@ -60,7 +60,7 @@ static Set *new_matches(void) { tmp = strdup("MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1"); if (!tmp) { log_oom(); - set_clear_free(set); + set_free(set); return NULL; } @@ -68,7 +68,7 @@ static Set *new_matches(void) { if (r < 0) { log_error("failed to add to set: %s", strerror(-r)); free(tmp); - set_clear_free(set); + set_free(set); return NULL; } |