From: Chuck Lever Date: Mon, 24 Sep 2007 15:28:49 +0000 (-0400) Subject: mount.nfs: Don't leak extra_opts X-Git-Tag: nfs-utils-1-1-1~50 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1ca7f42bfa6d4f47c88f82ecc33f2abb3cf92da7;p=nfs-utils.git mount.nfs: Don't leak extra_opts The mount.nfs[4] command should properly release extra_opts before exiting. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 31e1969..fe2c48b 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -575,6 +575,7 @@ int main(int argc, char *argv[]) } out: + free(extra_opts); free(mount_point); exit(mnt_err); }