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