cluster/dht: Fixed a leak in inode_ref

Introduced by commit d9f773ba719397c128

Change-Id: I3f3103a5a80daed7562ace72e5aa53b77e74fb94
BUG: 1541264
Signed-off-by: N Balachandran <nbalacha@redhat.com>
This commit is contained in:
N Balachandran 2018-02-02 18:32:32 +05:30 committed by Amar Tumballi
parent 545a7ce676
commit fe87f3e34f

View File

@ -6341,8 +6341,7 @@ dht_populate_inode_for_dentry (xlator_t *this, xlator_t *subvol,
loc.inode = inode_ref (orig_entry->inode);
if (is_revalidate (&loc)) {
loc_wipe (&loc);
return;
goto out;
}
layout = dht_layout_new (this, 1);
@ -6358,13 +6357,13 @@ dht_populate_inode_for_dentry (xlator_t *this, xlator_t *subvol,
layout = NULL;
}
loc_wipe (&loc);
}
if (layout)
dht_layout_unref (this, layout);
out:
loc_wipe (&loc);
return;
}