From 9da25b28d6f4f50f06aac77371417abc395e00d2 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Fri, 24 Aug 2012 17:32:44 +0200 Subject: [common_test] Close log files when deleting ct_conn_log_h error handler Due to a bad pattern matching in ct_conn_log_h:terminate/1, log files were not closed when error handler was deleted. This has been corrected. --- lib/common_test/src/ct_conn_log_h.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common_test/src/ct_conn_log_h.erl b/lib/common_test/src/ct_conn_log_h.erl index f3b6781971..bf27238121 100644 --- a/lib/common_test/src/ct_conn_log_h.erl +++ b/lib/common_test/src/ct_conn_log_h.erl @@ -84,7 +84,7 @@ handle_call(_Query, State) -> {ok, {error, bad_query}, State}. terminate(_,#state{logs=Logs}) -> - [file:close(Fd) || {_,_,Fds} <- Logs, Fd <- Fds], + [file:close(Fd) || {_,{_,Fds}} <- Logs, {_,Fd} <- Fds], ok. -- cgit v1.2.3