diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-13 11:27:21 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-10-14 10:26:58 -0400 |
commit | 5fe118b838254023d83424c5010ae73a91ec267d (patch) | |
tree | 626faa2ee9eff8a9c5f160751058ac558068ed15 /support/export/export.c | |
parent | 656028f9925f5817c5a37565d27159973db84ec3 (diff) | |
download | nfs-utils-5fe118b838254023d83424c5010ae73a91ec267d.tar.gz nfs-utils-5fe118b838254023d83424c5010ae73a91ec267d.tar.xz nfs-utils-5fe118b838254023d83424c5010ae73a91ec267d.zip |
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>
Diffstat (limited to 'support/export/export.c')
-rw-r--r-- | support/export/export.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/export/export.c b/support/export/export.c index f528603..4fda30a 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -38,6 +38,7 @@ export_free(nfs_export *exp) xfree(exp->m_export.e_sqgids); free(exp->m_export.e_mountpoint); free(exp->m_export.e_fslocdata); + free(exp->m_export.e_uuid); xfree(exp->m_export.e_hostname); xfree(exp); |