]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
fuse: use c++ allocations for group list
authorJeff Layton <jlayton@redhat.com>
Wed, 23 Aug 2017 16:13:14 +0000 (12:13 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 23 Aug 2017 16:13:14 +0000 (12:13 -0400)
commitf4fe5e2d524f8cca74f80a8a80fcd3e82b9effcb
treeedaed87cc68a57fa7fe8705b12c1f00d72c42880
parentaaed30f523c07fd501ea8fcb9365a8284c66c347
fuse: use c++ allocations for group list

Valgrind is unhappy about our turning on supplimentary group handling
with fuse by default. The problem is that we end up calling delete to
free the supplimentary gids list, but fuse uses malloc to allocate it.

Note that I was initially concerned that I needed to use malloc and
free there to handle the case of userland calling ceph_userperm_new,
but we leave freeing the pointer up to the caller in that case.

Convert fuse to use new/delete to allocate and free the group lists
instead.

Tracker: http://tracker.ceph.com/issues/21065
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/fuse_ll.cc