X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=3c7cd5b4fd9f0c936a6e4b59504e7bfb724cc3a2;hb=a33814173aed88ebfe6e8653adb9db4d94927132;hp=79d6e7ffd1cb24ad242fe4d52fbe7c0065d02f62;hpb=a0493bef1367458230b0319401f8533b0400cea2;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 79d6e7ff..3c7cd5b4 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -1286,8 +1286,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;