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:
parent
0ce2ca5ccd
commit
76da586396
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user