Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 956ccef3 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by J. Bruce Fields
Browse files

nfsd: recover: fix memory leak



nfsd4_cltrack_grace_start() will allocate the memory for grace_start but
when we returned due to error we missed freeing it.

Signed-off-by: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2f6fc056
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1260,6 +1260,7 @@ nfsd4_umh_cltrack_init(struct net *net)
	/* XXX: The usermode helper s not working in container yet. */
	if (net != &init_net) {
		pr_warn("NFSD: attempt to initialize umh client tracking in a container ignored.\n");
		kfree(grace_start);
		return -EINVAL;
	}