From: Evgeniy Khramtsov Date: Mon, 1 May 2017 07:14:00 +0000 (+0300) Subject: Don't forget to delete digraph X-Git-Tag: 17.06-beta~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe662c1a0a3f373b06c166a27a496185f7f32699;p=ejabberd Don't forget to delete digraph --- diff --git a/src/gen_mod.erl b/src/gen_mod.erl index 44e890e2f..f0ece7ceb 100644 --- a/src/gen_mod.erl +++ b/src/gen_mod.erl @@ -159,7 +159,9 @@ sort_modules(Host, ModOpts) -> end end, Deps) end, ModOpts), - [digraph:vertex(G, V) || V <- digraph_utils:topsort(G)]. + Result = [digraph:vertex(G, V) || V <- digraph_utils:topsort(G)], + digraph:delete(G), + Result. -spec start_modules(binary()) -> ok.