Skip to content

Commit

Permalink
ceph: fix leak of mon authorizer
Browse files Browse the repository at this point in the history
Fix leak of a struct ceph_buffer on umount.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Jul 5, 2010
1 parent ed98ada commit 22b1de0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ceph/auth_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 22b1de0

Please sign in to comment.