text-based mount.nfs: Fix memory leak in add_mtab()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 15:28:44 +0000 (11:28 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 25 Sep 2007 01:50:15 +0000 (11:50 +1000)
commitd97d88b288413b4e528e22739bfb08594efe9940
tree792c8940137a9b68cfc3f0d7e4be67f318f6fa24
parent51a4d2330b078dcd111d05e6c00753780b0e90a3
text-based mount.nfs: Fix memory leak in add_mtab()

The add_mtab() function in utils/mount/mount.c calls fix_opts_string() to
construct an /etc/mtab entry, but never frees the result.

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