Fix: use after free in channel release
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Sep 2015 05:12:53 +0000 (01:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Sep 2015 05:13:47 +0000 (01:13 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c

index 6993a46fb740039d22a647d1b13fef567b70dbc6..bdc6c7660601761bc42b999a3e99b5515916e6e2 100644 (file)
@@ -1234,8 +1234,8 @@ int lttng_metadata_channel_release(struct inode *inode, struct file *file)
        struct lttng_channel *channel = file->private_data;
 
        if (channel) {
-               lttng_metadata_channel_destroy(channel);
                fput(channel->session->file);
+               lttng_metadata_channel_destroy(channel);
        }
 
        return 0;
This page took 0.025762 seconds and 4 git commands to generate.