mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Bug#11835 CREATE FUNCTION crashes server
- Update for 5.1 - Add "have_dlopen" - Remove requirement to load udf's only in "opt_plugin_dir"
This commit is contained in:
@@ -94,8 +94,10 @@ static st_plugin_dl *plugin_dl_insert_or_reuse(struct st_plugin_dl *plugin_dl)
|
||||
|
||||
static inline void free_plugin_mem(struct st_plugin_dl *p)
|
||||
{
|
||||
#ifdef HAVE_DLOPEN
|
||||
if (p->handle)
|
||||
dlclose(p->handle);
|
||||
#endif
|
||||
my_free(p->dl.str, MYF(MY_ALLOW_ZERO_PTR));
|
||||
if (p->version != MYSQL_PLUGIN_INTERFACE_VERSION)
|
||||
my_free((gptr)p->plugins, MYF(MY_ALLOW_ZERO_PTR));
|
||||
|
||||
Reference in New Issue
Block a user