X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fconnection.c;h=cf93fb6e7ba93df52b548ace622c2387eea43c97;hp=eeaa0a559c74d3f7aa1ee6d5ffdfa146498ec195;hb=35be817a5049575ed3169e12d840c44527a6f098;hpb=fd0f1e3ef290b9d70e3856676298df5afb78d8dc diff --git a/src/bin/lttng-relayd/connection.c b/src/bin/lttng-relayd/connection.c index eeaa0a559..cf93fb6e7 100644 --- a/src/bin/lttng-relayd/connection.c +++ b/src/bin/lttng-relayd/connection.c @@ -127,6 +127,10 @@ static void rcu_free_connection(struct rcu_head *head) viewer_session_destroy(conn->viewer_session); conn->viewer_session = NULL; } + if (conn->type == RELAY_CONTROL) { + lttng_dynamic_buffer_reset( + &conn->protocol.ctrl.reception_buffer); + } free(conn); }