xiaokang commented on code in PR #50013: URL: https://github.com/apache/doris/pull/50013#discussion_r2041475660
########## be/src/olap/rowset/segment_v2/inverted_index_file_writer.cpp: ########## @@ -345,6 +345,8 @@ Status InvertedIndexFileWriter::write_v1() { FINALLY({ FINALLY_CLOSE(output); FINALLY_CLOSE(out_dir); + output = nullptr; Review Comment: Is setting ptr to nullptr necessary for other FINALLY_CLOSE(ptr)? If prt should be set to nullptr after FINALLY_CLOSE, can it be set inside FINALLY_CLOSE? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org