summaryrefslogtreecommitdiff
path: root/res/res_hep.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-11-21 21:34:56 -0500
committerCorey Farrell <git@cfware.com>2017-12-15 10:34:24 -0500
commit69b82113fa4ab0236b3c0eaf84710cc0e74eb7f6 (patch)
treefccb97a7ac2a3f089cc9a30252d11e79040c116d /res/res_hep.c
parent76deae295f9d2d3a317eee3c4596fdcc5af794f8 (diff)
loader: Minor fix to module registration.
This protects the module loader itself against crashing if dlopen is called on a module from outside loader.c. * Expand scope of lock inside ast_module_register to include reading of resource_being_loaded. * NULL check resource_being_loaded. * Set resource_being_loaded NULL as soon as dlopen returns. This fixes some error paths where it was not NULL'ed. * Create module_destroy function to deduplicate code from ast_module_unregister and modules_shutdown. * Resolve leak that occured if a module did not successfully register. * Simplify checking for successful registration. Change-Id: I40f07a315e55b92df4fc7faf525ed6d4f396e7d2
Diffstat (limited to 'res/res_hep.c')
0 files changed, 0 insertions, 0 deletions