mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-30 01:46:54 +00:00
Fix leak in client side lock invalidation
Clang's scan-build found this leak when we get an invalidation for a lock we no longer have. Free ireq to fix. Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
@@ -813,6 +813,7 @@ int scoutfs_lock_invalidate_request(struct super_block *sb, u64 net_id,
|
||||
|
||||
out:
|
||||
if (!lock) {
|
||||
kfree(ireq);
|
||||
ret = scoutfs_client_lock_response(sb, net_id, nl);
|
||||
BUG_ON(ret); /* lock server doesn't fence timed out client requests */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user