From: Mathieu Desnoyers Date: Wed, 15 May 2013 05:28:01 +0000 (+0200) Subject: Fix: "fields" leak on register X-Git-Tag: v2.2.0-rc3~19 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=464ea3a716c7d70f3f5cdd633ebff1ed17775aaf Fix: "fields" leak on register Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index b0e4484a..a31786ac 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -956,6 +956,8 @@ int ustcomm_register_event(int sock, if (len < 0) { return len; } + } else { + free(fields); } if (model_emf_uri_len) {