libexport.a: e_fslocdata should be freed with free(3) nfs-utils-1-2-3-rc1
authorChuck Lever <chuck.lever@oracle.com>
Mon, 22 Mar 2010 14:18:00 +0000 (10:18 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 22 Mar 2010 14:18:00 +0000 (10:18 -0400)
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/export.c

index ba643b2..42e78f6 100644 (file)
@@ -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);
                }