From: Mathieu Desnoyers Date: Thu, 7 Mar 2013 16:55:01 +0000 (-0500) Subject: Fix: fields should be initialized to NULL X-Git-Tag: v2.2.0-rc1~54 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3bf32af0f4694b44142f503d09e47654630fa8ff;p=lttng-ust.git Fix: fields should be initialized to NULL Fixes uninitialized pointer free. Signed-off-by: Mathieu Desnoyers --- 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;