diff --git a/src/arch/Threads/Threads_Pthreads.cpp b/src/arch/Threads/Threads_Pthreads.cpp index dc346362b9..768fee5a08 100644 --- a/src/arch/Threads/Threads_Pthreads.cpp +++ b/src/arch/Threads/Threads_Pthreads.cpp @@ -254,6 +254,8 @@ namespace pthread_condattr_destroy( &condattr ); /* Everything seems to work. */ + if( pLib != NULL ) + dlclose( pLib ); return; } while(0);