diff options
author | Siri Hansen <[email protected]> | 2012-08-24 17:32:44 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-08-24 17:32:44 +0200 |
commit | 9da25b28d6f4f50f06aac77371417abc395e00d2 (patch) | |
tree | 1fe5b7b7e0679d12fe8c8a170e4b851a642efee0 /lib/common_test/src | |
parent | a03b01444641aedfe6f6730d38ff890e33d3a8ea (diff) | |
download | otp-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.erl | 2 |
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. |