mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
conf: Do not leak memory when modules::module is already loaded.
This commit is contained in:
parent
f9960c0262
commit
43f45e81fb
1 changed files with 2 additions and 4 deletions
|
@ -290,10 +290,8 @@ conf_set_modules_module(void *data)
|
|||
|
||||
m_bn = rb_basename((char *) data);
|
||||
|
||||
if(findmodule_byname(m_bn) != -1)
|
||||
return;
|
||||
|
||||
load_one_module((char *) data, 0);
|
||||
if(findmodule_byname(m_bn) == -1)
|
||||
load_one_module((char *) data, 0);
|
||||
|
||||
rb_free(m_bn);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue