From: Mathieu Desnoyers Date: Wed, 15 May 2013 05:23:40 +0000 (+0200) Subject: Fix: memory leak on connection reset X-Git-Tag: v2.2.0-rc3~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eb8bf36110d807a9bcda2cab45a5de0885e99aa7;p=lttng-ust.git Fix: memory leak on connection reset Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 86af682b..4d437fc5 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -443,6 +443,7 @@ int handle_message(struct sock_info *sock_info, goto error; } ret = len; + free(bytecode); goto end; } else { DBG("incorrect filter data message size: %zd", len);