Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/ntfsprogs
In directory delta357:/tmp/cvs-serv28216/ntfsprogs
Modified Files:
ntfsmount.c
Log Message:
Fix several memleaks
Index: ntfsmount.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -p -r1.85 -r1.86
--- ntfsmount.c 19 May 2006 04:22:53 -0000 1.85
+++ ntfsmount.c 27 Oct 2006 14:15:32 -0000 1.86
@@ -1800,6 +1800,7 @@ int main(int argc, char *argv[])
/* Mount volume. */
if (ntfs_fuse_mount(opts.device)) {
ntfs_fuse_destroy();
+ free(parsed_options);
return 4;
}
/* Create filesystem. */
@@ -1814,12 +1815,12 @@ int main(int argc, char *argv[])
#else
ffd = fuse_mount(opts.mnt_point, parsed_options);
#endif
+ free(parsed_options);
if (ffd == -1) {
ntfs_log_error("fuse_mount failed.\n");
ntfs_fuse_destroy();
return 5;
}
- free(parsed_options);
#if defined(FUSE_VERSION) && (FUSE_VERSION >= 25)
fh = (struct fuse *)1; /* Cast anything except NULL to handle errors. */
margs = (struct fuse_args)FUSE_ARGS_INIT(0, NULL);
|