conf: Do not leak memory when modules::module is already loaded.

This commit is contained in:
Jilles Tjoelker 2014-02-23 22:20:43 +01:00
parent f9960c0262
commit 43f45e81fb

View file

@ -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