summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/qemu-block/src/qemu-block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c
index 8cc78ff165c..371ca8723fb 100644
--- a/xlators/features/qemu-block/src/qemu-block.c
+++ b/xlators/features/qemu-block/src/qemu-block.c
@@ -1088,8 +1088,8 @@ fini (xlator_t *this)
this->private = NULL;
- if (conf->root_inode)
- inode_unref(conf->root_inode);
+ /* No need to do inode_unref of conf->root_inode as ref/unref doesn't
+ * apply for it*/
GF_FREE (conf);
return;