summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-05 21:43:06 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-05 21:43:06 -0500
commita187bfd98ae7b651f7c464450895ead6bdf1ddd6 (patch)
treec2a60c93368996fc65c2a241f5f64b64e2ed1ddb
parent646614a40713ef864bfc4dcf64f7a84cdeebff24 (diff)
journal/tests: free allocated memory in test
-rw-r--r--src/journal/test-journal-syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/test-journal-syslog.c b/src/journal/test-journal-syslog.c
index 5cf940733b..895975caa5 100644
--- a/src/journal/test-journal-syslog.c
+++ b/src/journal/test-journal-syslog.c
@@ -25,7 +25,7 @@
static void test_syslog_parse_identifier(const char* str,
const char *ident, const char*pid, int ret) {
const char *buf = str;
- char *ident2 = NULL, *pid2 = NULL;
+ char _cleanup_free_ *ident2 = NULL, *pid2 = NULL;
int ret2;
ret2 = syslog_parse_identifier(&buf, &ident2, &pid2);