We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95a564 commit 42d644eCopy full SHA for 42d644e
1 file changed
modules/core/src/system.cpp
@@ -1835,7 +1835,15 @@ void* TLSDataContainer::getData() const
1835
{
1836
// Create new data instance and save it to TLS storage
1837
pData = createDataInstance();
1838
- getTlsStorage().setData(key_, pData);
+ try
1839
+ {
1840
+ getTlsStorage().setData(key_, pData);
1841
+ }
1842
+ catch (...)
1843
1844
+ deleteDataInstance(pData);
1845
+ throw;
1846
1847
}
1848
return pData;
1849
0 commit comments