1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
diff -upr mfs-1.6.27-old/mfsmount/main.c mfs-1.6.27/mfsmount/main.c
--- mfs-1.6.27-old/mfsmount/main.c 2012-08-06 07:21:33.000000000 +0200
+++ mfs-1.6.27/mfsmount/main.c 2014-06-02 17:10:23.111561088 +0200
@@ -1012,15 +1012,17 @@ int main(int argc, char *argv[]) {
res = mainloop(&args,mountpoint,mt,fg);
fuse_opt_free_args(&args);
+ fuse_opt_free_args(&defaultargs);
free(mfsopts.masterhost);
free(mfsopts.masterport);
if (mfsopts.bindhost) {
free(mfsopts.bindhost);
}
free(mfsopts.subfolder);
- if (defaultmountpoint) {
+ if (defaultmountpoint && defaultmountpoint != mountpoint) {
free(defaultmountpoint);
}
+ free(mountpoint);
stats_term();
strerr_term();
return res;
|