2
0
Fork 0

fix mem leak in core_module_load()

personal/stbuehler/wip
Thomas Porzelt 2009-03-06 18:52:48 +01:00
parent a01815421c
commit 8afe9aff3d
1 changed files with 1 additions and 0 deletions

View File

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