From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 19:56:57 +0000 (-0400) Subject: Fix channel release call order wrt free X-Git-Tag: v1.9.1~273 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1fc6c5c9aa62d88f9fa995575006f7a756b1944a;p=lttng-ust.git Fix channel release call order wrt free Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c index ee205e86..f242cc07 100644 --- a/libringbuffer/ring_buffer_frontend.c +++ b/libringbuffer/ring_buffer_frontend.c @@ -567,8 +567,8 @@ void *channel_destroy(struct channel *chan, struct shm_handle *handle) * sessiond/consumer are keeping a reference on the shm file * descriptor directly. No need to refcount. */ - channel_release(chan, handle); priv = chan->backend.priv; + channel_release(chan, handle); return priv; }