From 464ea3a716c7d70f3f5cdd633ebff1ed17775aaf Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 15 May 2013 07:28:01 +0200 Subject: [PATCH] Fix: "fields" leak on register Signed-off-by: Mathieu Desnoyers --- liblttng-ust-comm/lttng-ust-comm.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.34.1