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 31e1969..fe2c48b 100644 (file)
@@ -575,6 +575,7 @@ int main(int argc, char *argv[])
        }
 
 out:
        }
 
 out:
+       free(extra_opts);
        free(mount_point);
        exit(mnt_err);
 }
        free(mount_point);
        exit(mnt_err);
 }