cephx: don't leak Authorizers on each request

It's not clear to me why this is a class member -- it's only
written to or read from in this function, which allocates a fresh
one each time it's called.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
Greg Farnum 2011-10-06 09:58:48 -07:00
parent 5d7e4bd58e
commit d926201434

View File

@ -81,6 +81,7 @@ int CephxClientHandler::build_request(bufferlist& bl)
if (!authorizer)
return -EINVAL;
bl.claim_append(authorizer->bl);
delete authorizer;
CephXServiceTicketRequest req;
req.keys = need;