mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Fix memory leak
This commit is contained in:
parent
3d1affbddb
commit
64d232f1aa
@ -346,7 +346,7 @@ DatabaseAndTable DatabaseCatalog::getTableImpl(
|
||||
catch (const Exception & e)
|
||||
{
|
||||
if (exception)
|
||||
exception->emplace(*e.clone());
|
||||
exception->emplace(e);
|
||||
}
|
||||
|
||||
if (!table)
|
||||
|
@ -8,9 +8,9 @@ test1
|
||||
13 14 15
|
||||
16 17 18
|
||||
0 0 0
|
||||
20 21 22
|
||||
23 24 25
|
||||
26 27 28
|
||||
10 11 12
|
||||
13 14 15
|
||||
16 17 18
|
||||
0 0 0
|
||||
Test 2: check exceptions
|
||||
OK
|
||||
|
@ -25,7 +25,7 @@ SELECT * FROM \"http://localhost:11111/test/b.tsv\"
|
||||
"""
|
||||
${CLICKHOUSE_CLIENT} -q "DROP DATABASE test2;"
|
||||
|
||||
${CLICKHOUSE_LOCAL} --query "SELECT * FROM \"http://localhost:11111/test/c.tsv\""
|
||||
${CLICKHOUSE_LOCAL} --query "SELECT * FROM \"http://localhost:11111/test/b.tsv\""
|
||||
|
||||
#################
|
||||
echo "Test 2: check exceptions"
|
||||
|
Loading…
Reference in New Issue
Block a user