From: Mathieu Desnoyers Date: Tue, 30 Apr 2013 14:26:11 +0000 (-0400) Subject: Fix: fd leak on error X-Git-Tag: v2.2.0-rc2~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8c0670510c21676df20f086268593738e91ee332;p=lttng-tools.git Fix: fd leak on error Signed-off-by: Mathieu Desnoyers --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index d8c8017d8..c74599ded 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -2183,6 +2183,7 @@ static int send_channel_uid_to_ust(struct buffer_reg_channel *reg_chan, ret = ust_consumer_send_stream_to_ust(app, ua_chan, &stream); if (ret < 0) { + (void) release_ust_app_stream(-1, &stream); goto error_stream_unlock; }