From eb8057c6f4df23e68e657441fdc4f9bb8cc2e94b Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 22 Dec 2015 14:02:36 +0500 Subject: [PATCH] ceph-fuse: fix double free of args Checking src/ceph_fuse.cc... [src/ceph_fuse.cc:55]: (error) Memory pointed to by 'argv' is freed twice. [src/ceph_fuse.cc:55]: (error) Deallocating a deallocated pointer: argv Signed-off-by: Ilya Shipitsin --- src/ceph_fuse.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index 6d5c946a0fd..e593d0b2c91 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -48,7 +48,6 @@ static void fuse_usage() if (fuse_parse_cmdline(&args, NULL, NULL, NULL) == -1) { derr << "fuse_parse_cmdline failed." << dendl; fuse_opt_free_args(&args); - free(argv); } assert(args.allocated); // Checking fuse has realloc'd args so we can free newargv -- 2.47.3