needed by filesystems to implement some argument manipulations
correctly
+ * fuse_opt: fix memory leak in handling "--" option
+
2006-01-18 Miklos Szeredi <miklos@szeredi.hu>
* kernel: fix detection of case when fuse is not configured into
fuse_opt_insert_arg(&ctx->outargs, 2, ctx->opts) == -1)
return -1;
}
- if (ctx->nonopt && ctx->nonopt == ctx->outargs.argc)
+ if (ctx->nonopt && ctx->nonopt == ctx->outargs.argc) {
+ free(ctx->outargs.argv[ctx->outargs.argc - 1]);
ctx->outargs.argv[--ctx->outargs.argc] = NULL;
+ }
return 0;
}