BUG: Microsoft Oracle Provider Leaks Memory Through ICommandText

ID: Q236583


SYMPTOMS

The Microsoft OLE DB Provider for Oracle leaks memory when you use ICommandText::SetCommandText(), ICommandText::Execute(), and ICommandText::Release().


RESOLUTION

Currently, there are no workarounds for this problem.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

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