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

Commit 22b1de06 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix leak of mon authorizer



Fix leak of a struct ceph_buffer on umount.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent ed98adad
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -613,6 +613,9 @@ static void ceph_x_destroy(struct ceph_auth_client *ac)
		remove_ticket_handler(ac, th);
	}

	if (xi->auth_authorizer.buf)
		ceph_buffer_put(xi->auth_authorizer.buf);

	kfree(ac->private);
	ac->private = NULL;
}