fix mem leak in core_module_load()
parent
a01815421c
commit
8afe9aff3d
|
@ -542,6 +542,7 @@ static gboolean core_module_load(server *srv, plugin* p, value *val) {
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
g_array_free(mods->data.list, TRUE);
|
||||
mods->data.list = value_extract(val).list;
|
||||
} else {
|
||||
ERROR(srv, "module_load takes either a string or a list of strings as parameter, %s given", value_type_string(val->type));
|
||||
|
|
Loading…
Reference in New Issue