Skip to content
Permalink
Browse files

Doesn't return anything

  • Loading branch information...
arr2036 committed Apr 21, 2019
1 parent c59b0ee commit 98bcadc8ac25357e2aff90eaec319d096610e78c
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/lib/server/module.c
@@ -775,20 +775,17 @@ void module_free(module_instance_t *mi)
}

/** Free all modules loaded by the server
*
* @return 0.
*/
void modules_free(void)
{
module_instance_t **inst = NULL;
size_t len, i;

rbtree_flatten(NULL, (void ***)&inst, module_instance_name_tree, RBTREE_IN_ORDER);

len = talloc_array_length(inst);
for (i = 0; i < len; i++) talloc_free(inst[(len - i) - 1]);

talloc_free(inst);

TALLOC_FREE(module_instance_name_tree);
TALLOC_FREE(module_instance_data_tree);
TALLOC_FREE(instance_ctx);

0 comments on commit 98bcadc

Please sign in to comment.
You can’t perform that action at this time.