From 3bf32af0f4694b44142f503d09e47654630fa8ff Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 7 Mar 2013 11:55:01 -0500 Subject: [PATCH] Fix: fields should be initialized to NULL Fixes uninitialized pointer free. Signed-off-by: Mathieu Desnoyers --- liblttng-ust-comm/lttng-ust-comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 00b1d43a..3a60ba1a 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -831,7 +831,7 @@ int ustcomm_register_event(int sock, struct ustcomm_notify_event_reply r; } reply; size_t signature_len, fields_len, model_emf_uri_len; - struct ustctl_field *fields; + struct ustctl_field *fields = NULL; size_t nr_write_fields = 0; int ret; -- 2.34.1