0
0
Fork 0
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:
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); 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