Don't forget to delete digraph

This commit is contained in:
Evgeniy Khramtsov 2017-05-01 10:14:00 +03:00
parent fddd6110e0
commit fe662c1a0a
1 changed files with 3 additions and 1 deletions

View 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.