mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
test-journal-flush: fix memleak
This commit is contained in:
parent
cd977dca10
commit
3e348b8a6a
@ -27,8 +27,8 @@
|
|||||||
#include "journal-internal.h"
|
#include "journal-internal.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
_cleanup_free_ char *fn = NULL;
|
||||||
char dn[] = "/var/tmp/test-journal-flush.XXXXXX", *fn;
|
char dn[] = "/var/tmp/test-journal-flush.XXXXXX";
|
||||||
JournalFile *new_journal = NULL;
|
JournalFile *new_journal = NULL;
|
||||||
sd_journal *j = NULL;
|
sd_journal *j = NULL;
|
||||||
unsigned n = 0;
|
unsigned n = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user