1
0
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:
Ronny Chevalier 2015-04-09 11:23:53 +02:00
parent cd977dca10
commit 3e348b8a6a

View File

@ -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;