aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-08-24 17:32:44 +0200
committerSiri Hansen <[email protected]>2012-08-24 17:32:44 +0200
commit9da25b28d6f4f50f06aac77371417abc395e00d2 (patch)
tree1fe5b7b7e0679d12fe8c8a170e4b851a642efee0 /lib/common_test/src
parenta03b01444641aedfe6f6730d38ff890e33d3a8ea (diff)
downloadotp-9da25b28d6f4f50f06aac77371417abc395e00d2.tar.gz
otp-9da25b28d6f4f50f06aac77371417abc395e00d2.tar.bz2
otp-9da25b28d6f4f50f06aac77371417abc395e00d2.zip
[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.
Diffstat (limited to 'lib/common_test/src')
-rw-r--r--lib/common_test/src/ct_conn_log_h.erl2
1 files changed, 1 insertions, 1 deletions
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.