]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse: should free array using "delete[]" 17595/head
authorKefu Chai <kchai@redhat.com>
Fri, 8 Sep 2017 10:30:53 +0000 (18:30 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 11 Sep 2017 04:41:00 +0000 (12:41 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/client/fuse_ll.cc

index d24ad5c3451a14a5211988510e313af7efd06589..99900ef038195e7ca20b46cac577bb4d15506082 100644 (file)
@@ -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;
   }