From: Kefu Chai Date: Fri, 8 Sep 2017 10:30:53 +0000 (+0800) Subject: ceph-fuse: should free array using "delete[]" X-Git-Tag: v13.0.1~900^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17595%2Fhead;p=ceph.git ceph-fuse: should free array using "delete[]" Signed-off-by: Kefu Chai --- diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index d24ad5c3451a..99900ef03819 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -118,7 +118,7 @@ static int getgroups(fuse_req_t req, gid_t **sgids) } c = fuse_req_getgroups(req, c, gids); if (c < 0) { - delete gids; + delete[] gids; } else { *sgids = gids; }