From e7c889439f788f320158285eec22d2f4f1c9292a Mon Sep 17 00:00:00 2001 From: left2right Date: Mon, 13 Jun 2016 11:02:25 +0800 Subject: [PATCH] fix mem_analysis output bug --- mem_analysis | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mem_analysis b/mem_analysis index f24cc60..989775b 100755 --- a/mem_analysis +++ b/mem_analysis @@ -78,8 +78,10 @@ destruct(Terms) -> [] end, Terms), - lists:map(fun([{Name, Value}]) -> - io_lib:format("~s ~p~n", [Name, Value]); + lists:map(fun(List) when is_list(List) -> + lists:map(fun({Name,Value}) -> + io_lib:format("~s ~p~n", [Name, Value]) + end, List); ({Name, Value}) -> io_lib:format("~s ~p~n", [Name, Value]) end, Results).