Minor fix for potential Tx resources leak found by static code analysis