journal/tests: free allocated memory in test

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-03-05 21:43:06 -05:00
parent 646614a407
commit a187bfd98a
+1 -1
View File
@@ -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);