From 4b884ae475c648b732407ce10f50fff4ad2b550a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 8 Sep 2017 18:30:53 +0800 Subject: [PATCH] ceph-fuse: should free array using "delete[]" Signed-off-by: Kefu Chai --- src/client/fuse_ll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3