X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;fp=lttng-abi.c;h=5bd7621f13ff5c503a55a4e57ada5b5e5678a451;hb=6a4ad2df7977360185a5cc8a377902cdf4d63dd7;hp=a9e8d1d0423f4120144808585773c2234649a67e;hpb=180243e7a722bb0eed882c2b4a44f4bac37dc050;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index a9e8d1d0..5bd7621f 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -1198,8 +1198,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;