mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +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)
|
catch (const Exception & e)
|
||||||
{
|
{
|
||||||
if (exception)
|
if (exception)
|
||||||
exception->emplace(*e.clone());
|
exception->emplace(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!table)
|
if (!table)
|
||||||
|
@ -8,9 +8,9 @@ test1
|
|||||||
13 14 15
|
13 14 15
|
||||||
16 17 18
|
16 17 18
|
||||||
0 0 0
|
0 0 0
|
||||||
20 21 22
|
10 11 12
|
||||||
23 24 25
|
13 14 15
|
||||||
26 27 28
|
16 17 18
|
||||||
0 0 0
|
0 0 0
|
||||||
Test 2: check exceptions
|
Test 2: check exceptions
|
||||||
OK
|
OK
|
||||||
|
@ -25,7 +25,7 @@ SELECT * FROM \"http://localhost:11111/test/b.tsv\"
|
|||||||
"""
|
"""
|
||||||
${CLICKHOUSE_CLIENT} -q "DROP DATABASE test2;"
|
${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"
|
echo "Test 2: check exceptions"
|
||||||
|
Loading…
Reference in New Issue
Block a user