export: Ensure that we free struct exportent->e_uuid
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 13 Oct 2010 15:27:21 +0000 (11:27 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 14 Oct 2010 14:26:58 +0000 (10:26 -0400)
commit5fe118b838254023d83424c5010ae73a91ec267d
tree626faa2ee9eff8a9c5f160751058ac558068ed15
parent656028f9925f5817c5a37565d27159973db84ec3
export: Ensure that we free struct exportent->e_uuid

Currently, the exportent->e_uuid is initialised in
support/nfs/exports.c:parseopts(), but it is never freed.

Also ensure that exportent->e_uuid is duplicated correctly in
dupexportent().

Adjusted to account for the new export_free() helper.

Also, e_uuid points to memory that is always allocated with strdup(3),
not with xstrdup().  Thus it must be freed via free(3) and not via
xfree().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/export.c
support/nfs/exports.c