]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount.nfs: Don't leak extra_opts
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 15:28:49 +0000 (11:28 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 25 Sep 2007 01:50:16 +0000 (11:50 +1000)
The mount.nfs[4] command should properly release extra_opts before exiting.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/mount.c

index 31e196952a0d53ab689d8b94a2a70b3216727adf..fe2c48b4d0617d419ef48f756a4eb0656afe0d87 100644 (file)
@@ -575,6 +575,7 @@ int main(int argc, char *argv[])
        }
 
 out:
+       free(extra_opts);
        free(mount_point);
        exit(mnt_err);
 }