mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 19:22:53 +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);
|
m_bn = rb_basename((char *) data);
|
||||||
|
|
||||||
if(findmodule_byname(m_bn) != -1)
|
if(findmodule_byname(m_bn) == -1)
|
||||||
return;
|
load_one_module((char *) data, 0);
|
||||||
|
|
||||||
load_one_module((char *) data, 0);
|
|
||||||
|
|
||||||
rb_free(m_bn);
|
rb_free(m_bn);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue