From a187bfd98ae7b651f7c464450895ead6bdf1ddd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 5 Mar 2013 21:43:06 -0500 Subject: [PATCH] journal/tests: free allocated memory in test --- src/journal/test-journal-syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/test-journal-syslog.c b/src/journal/test-journal-syslog.c index 5cf940733..895975caa 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); -- 2.30.2