]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse: fix double free of args 7015/head
authorIlya Shipitsin <ilia@localhost.localdomain>
Tue, 22 Dec 2015 09:02:36 +0000 (14:02 +0500)
committerIlya Shipitsin <ilia@localhost.localdomain>
Tue, 22 Dec 2015 20:28:06 +0000 (01:28 +0500)
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 <chipitsine@gmail.com>
src/ceph_fuse.cc

index 6d5c946a0fd42fdcc7db8d28b4c886df4df05856..e593d0b2c91507b47b4ec09e53a8043980ec6b5c 100644 (file)
@@ -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