summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-04-09 11:23:53 +0200
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-04-09 18:47:52 +0200
commit3e348b8a6af4bc46562efa44500fe2fa44320aa1 (patch)
treebd686ed7bb316c44e40a932a31188d2ba964b6cf /src
parentcd977dca10a9c6ce29a4720914718c74c3b84a76 (diff)
test-journal-flush: fix memleak
Diffstat (limited to 'src')
-rw-r--r--src/journal/test-journal-flush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c
index 914ca0b4d1..2d4f531e9b 100644
--- a/src/journal/test-journal-flush.c
+++ b/src/journal/test-journal-flush.c
@@ -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;