MCPcopy Create free account
hub / github.com/MariaDB/server / free_plugin_mem

Function free_plugin_mem

sql/sql_plugin.cc:509–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507
508
509static void free_plugin_mem(struct st_plugin_dl *p)
510{
511#ifdef HAVE_DLOPEN
512 if (p->ptr_backup)
513 {
514 DBUG_ASSERT(p->nbackups);
515 DBUG_ASSERT(p->handle);
516 restore_ptr_backup(p->nbackups, p->ptr_backup);
517 my_free(p->ptr_backup);
518 }
519 if (p->handle)
520 dlclose(p->handle);
521#endif
522 my_free(const_cast<char*>(p->dl.str));
523 if (p->allocated)
524 my_free(p->plugins);
525}
526
527
528/**

Callers 3

plugin_dl_addFunction · 0.85
plugin_dl_delFunction · 0.85
plugin_shutdownFunction · 0.85

Calls 2

restore_ptr_backupFunction · 0.85
my_freeFunction · 0.85

Tested by

no test coverage detected