diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 15:36:22 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 15:36:22 +0100 |
commit | aa50d37b089a47bd75c9bc27b0ccf68baa456bc6 (patch) | |
tree | 7f6f0aa129c6620b78494cdd129f4386a1a3744a | |
parent | 75a04e11e0749f8268ae9f66e7f8a09d2db7879b (diff) | |
download | rabbitmq-server-aa50d37b089a47bd75c9bc27b0ccf68baa456bc6.tar.gz |
Delete graph after use
-rw-r--r-- | src/rabbit.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index ce120570..af9cb472 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -394,7 +394,9 @@ application_load_order() -> {ok, Deps} <- [application:get_key(App, applications)]]), true = digraph:del_vertices( G, digraph:vertices(G) -- digraph_utils:reachable(?APPS, G)), - digraph_utils:topsort(G). + Result = digraph_utils:topsort(G), + true = digraph:delete(G), + Result. application_graph_vertex(App, _Deps) -> [{App, App}]. |