Commit 0bcca797 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

posix: do not unload plugins with GCC ASan

Like valgrind, the address sanitizer generates unusable leak reports if
plugins are unloaded.
parent c73afd03
......@@ -78,11 +78,15 @@ int module_Load (vlc_object_t *p_this, const char *path,
*/
void module_Unload( module_handle_t handle )
{
#if !defined(__SANITIZE_ADDRESS__)
#ifdef HAVE_VALGRIND_VALGRIND_H
if( RUNNING_ON_VALGRIND > 0 )
return; /* do not dlclose() so that we get proper stack traces */
#endif
dlclose( handle );
#else
(void) handle;
#endif
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment