From 1fc6c5c9aa62d88f9fa995575006f7a756b1944a Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 23 Aug 2011 15:56:57 -0400 Subject: [PATCH] Fix channel release call order wrt free Signed-off-by: Mathieu Desnoyers --- libringbuffer/ring_buffer_frontend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libringbuffer/ring_buffer_frontend.c b/libringbuffer/ring_buffer_frontend.c index ee205e8..f242cc0 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; } -- 2.34.1