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,9 +290,7 @@ 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);
|
||||||
|
|
Loading…
Reference in a new issue