mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix use-after-free in StorageURL when switching URLs
This commit is contained in:
parent
f35faa4b8f
commit
2498170253
@ -153,6 +153,7 @@ public:
|
||||
/// * Parallel reading.
|
||||
/// To enable it, make sure `buf` is a SeekableReadBuffer implementing readBigAt().
|
||||
/// * Parallel parsing.
|
||||
/// `buf` must outlive the returned IInputFormat.
|
||||
InputFormatPtr getInput(
|
||||
const String & name,
|
||||
ReadBuffer & buf,
|
||||
|
@ -361,6 +361,8 @@ Chunk StorageURLSource::generate()
|
||||
|
||||
pipeline->reset();
|
||||
reader.reset();
|
||||
input_format.reset();
|
||||
read_buf.reset();
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user