Fix channel release call order wrt free
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 19:56:57 +0000 (15:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Aug 2011 19:56:57 +0000 (15:56 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_frontend.c

index ee205e86fbf0389b06d7bee31f8f59e55cb5db5a..f242cc07e825d81beb667c4dd401749df98ebaa6 100644 (file)
@@ -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;
 }
 
This page took 0.023955 seconds and 4 git commands to generate.