From 35f7d213fe7395ba502a8e209b04c2be1ea75928 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 29 May 2015 16:28:10 +0530 Subject: features/qemu-block: Don't unref root inode Root inode doesn't participate in ref/unref. Don't do it in fini as by the time fini is called itable would be destroyed. BUG: 1226276 Change-Id: I704d0a3c0813cb8f6c3f1f7d613c89aca8f4f9ad Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/11002 Tested-by: Gluster Build System Reviewed-by: Niels de Vos --- xlators/features/qemu-block/src/qemu-block.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xlators/features') diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c index 89cb3e9b5d2..12bc2743756 100644 --- a/xlators/features/qemu-block/src/qemu-block.c +++ b/xlators/features/qemu-block/src/qemu-block.c @@ -1083,8 +1083,7 @@ fini (xlator_t *this) this->private = NULL; - if (conf->root_inode) - inode_unref(conf->root_inode); + conf->root_inode = NULL; GF_FREE (conf); return; -- cgit