mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-16 06:56:41 +02:00
Exception in destructor (#1777)
* The destructor of BasicBufferedStreamBuf() calls Allocator::deallocate which can throw exceptions. In particular it throws Poco::SystemException when can't lock mutex. * Added poco_unexpected(); into exception handler
This commit is contained in:
parent
a33057d8fe
commit
d7d6b739a2
@ -67,7 +67,13 @@ public:
|
||||
|
||||
~BasicBufferedStreamBuf()
|
||||
{
|
||||
Allocator::deallocate(_pBuffer, _bufsize);
|
||||
try
|
||||
{
|
||||
Allocator::deallocate(_pBuffer, _bufsize);
|
||||
} catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
virtual int_type overflow(int_type c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user