From: Chuck Lever Date: Mon, 22 Mar 2010 14:18:00 +0000 (-0400) Subject: libexport.a: e_fslocdata should be freed with free(3) X-Git-Tag: nfs-utils-1-2-3-rc1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=132744e9f8885254bcf213c90009d40adeb716bc;p=nfs-utils.git libexport.a: e_fslocdata should be freed with free(3) Clean up: Since e_fslocdata is allocated with strdup(3), and not xstrdup(), it should be freed with free(3), and not xfree(). Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/support/export/export.c b/support/export/export.c index ba643b2..42e78f6 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -277,7 +277,7 @@ export_freeall(void) if (exp->m_export.e_mountpoint) free(exp->m_export.e_mountpoint); if (exp->m_export.e_fslocdata) - xfree(exp->m_export.e_fslocdata); + free(exp->m_export.e_fslocdata); xfree(exp->m_export.e_hostname); xfree(exp); }