From 67f90ff85934cc89829fec6a766b7124ff949261 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 21 Aug 2017 14:41:39 -0400 Subject: [PATCH] Test fix: free() of uninitialized pointer on error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 0a09e244..3d24ea41 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -98,7 +98,7 @@ static void validate_trace(char *parser_path, char *trace_path) { int ret = 0; - gchar *standard_error; + gchar *standard_error = NULL; gint exit_status; char *argv[] = {parser_path, trace_path, NULL}; -- 2.34.1