BUG: Microsoft Oracle Provider Leaks Memory Through ICommandTextID: Q236583
|
The Microsoft OLE DB Provider for Oracle leaks memory when you use ICommandText::SetCommandText(), ICommandText::Execute(), and ICommandText::Release().
Currently, there are no workarounds for this problem.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
The following code reproduces the memory leak:
hr = pIDBCreateCommand->CreateCommand( NULL,
IID_ICommandText, ( IUnknown ** ) & pICommandText );
hr = pICommandText->SetCommandText( DBGUID_DBSQL, wSQLString );
hr = pICommandText->Execute( NULL, IID_IRowset, NULL,
& cRowsAffected, ( IUnknown ** ) & pIRowset );
if( pIRowset )
pIRowset->Release();
hr = pICommandText->Release();
Additional query words:
Keywords : kbOLEDB
Version :
Platform :
Issue type : kbbug
Last Reviewed: July 22, 1999