]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: in UserPerm, correctly use delete[] and don't leak gids on copy 11218/head
authorGreg Farnum <gfarnum@redhat.com>
Wed, 28 Sep 2016 06:45:56 +0000 (23:45 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 30 Sep 2016 22:19:17 +0000 (15:19 -0700)
commit42b15729f63010b47bbaaa975e15487ab3c5db28
tree0c333088dabc3b260d5e59d23198e79bf21d79c5
parenta67f61f029e35ed831b8e6dba39394856c87a6e0
client: in UserPerm, correctly use delete[] and don't leak gids on copy

gids is an array. We also need to clean it up when deep_copy()ing, which
requires initializing our member fields in the copy-constructor.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/client/UserPerm.h