mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
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:
parent
5d7e4bd58e
commit
d926201434
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user