1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

fixed a vfs crash bug

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 0ce2ca5ccd
commit 76da586396

View File

@ -164,15 +164,13 @@ free a conn structure
****************************************************************************/ ****************************************************************************/
void conn_free(connection_struct *conn) void conn_free(connection_struct *conn)
{ {
/* Close dlopen() handle */
if (conn->vfs_conn->dl_handle != NULL) {
dlclose(conn->vfs_conn->dl_handle); /* should we check return val? */
}
/* Free vfs_connection_struct */ /* Free vfs_connection_struct */
if (conn->vfs_conn != NULL) { if (conn->vfs_conn != NULL) {
/* Close dlopen() handle */
if (conn->vfs_conn->dl_handle) {
dlclose(conn->vfs_conn->dl_handle);
}
if (conn->vfs_conn->groups != NULL) { if (conn->vfs_conn->groups != NULL) {
free(conn->vfs_conn->groups); free(conn->vfs_conn->groups);
} }