Skip to content

Commit 02418fb

Browse files
committed
sam_bitwise_flag_filter.py - close file handle
1 parent 640bc43 commit 02418fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/sam_bitwise_flag_filter/sam_bitwise_flag_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def main():
142142
if valid_line:
143143
print(line)
144144

145+
if options.input_sam:
146+
infile.close()
147+
145148

146149
if __name__ == "__main__":
147150
main()

0 commit comments

Comments
 (0)