]> granicus.if.org Git - ejabberd/commitdiff
Don't forget to delete digraph
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 1 May 2017 07:14:00 +0000 (10:14 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 1 May 2017 07:14:00 +0000 (10:14 +0300)
src/gen_mod.erl

index 44e890e2fec15313cfbc72227933134c9e92f946..f0ece7ceb0b4199dd0b02db80efd57b2948cf753 100644 (file)
@@ -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.