Issue 119939 - memory leak in api OpenDirectory() of sal module
Summary: memory leak in api OpenDirectory() of sal module
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: AOO 3.4.0
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: zhang jianfang
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 120975
  Show dependency tree
 
Reported: 2012-06-10 07:10 UTC by zhang jianfang
Modified: 2012-09-15 13:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch for file sal\osl\w32\file_dirvol.cxx (490 bytes, patch)
2012-06-10 07:19 UTC, zhang jianfang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description zhang jianfang 2012-06-10 07:10:43 UTC
The leak happens for many time when opening any document. The leaked piece of memory is created with below call stack. 

	sal3!rtl_allocateMemory+0000000D (e:\aooblds\builds\r343539\sal\rtl\source\alloc_global.c, 301)
	sal3!OpenDirectory+0000007C (e:\aooblds\builds\r343539\sal\osl\w32\file_dirvol.cxx, 418)
	sal3!osl_openFileDirectory+000000F7 (e:\aooblds\builds\r343539\sal\osl\w32\file_dirvol.cxx, 601)
	sal3!osl_openDirectory+0000009B (e:\aooblds\builds\r343539\sal\osl\w32\file_dirvol.cxx, 834)
	utl!utl::ensuredir+0000009A
	utl!utl::ConstructTempDir_Impl+000001DF
	utl!utl::TempFile::TempFile+00000048
	utl!OTempFileService::OTempFileService+000000CC
	utl!XTempFile_createInstance+0000002F
	cppuhelper3MSC!cppu::OSingleFactoryHelper::createInstanceEveryTime+00000048 (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 170)
	cppuhelper3MSC!cppu::OSingleFactoryHelper::createInstanceWithContext+00000043 (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 211)
	cppuhelper3MSC!cppu::OFactoryComponentHelper::createInstanceWithContext+000000FE (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 495)
	cppuhelper3MSC!cppu::ORegistryFactoryHelper::createInstanceEveryTime+0000014B (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 759)
	cppuhelper3MSC!cppu::OSingleFactoryHelper::createInstanceWithContext+00000043 (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 211)
	cppuhelper3MSC!cppu::OFactoryComponentHelper::createInstanceWithContext+000000FE (e:\aooblds\builds\r343539\cppuhelper\source\factory.cxx, 495)
	bootstrap.uno!stoc_smgr::OServiceManager::createInstanceWithContext+0000033B (e:\aooblds\builds\r343539\stoc\source\servicemanager\servicemanager.cxx, 1246)
	bootstrap.uno!stoc_smgr::OServiceManager::createInstance+0000004B (e:\aooblds\builds\r343539\stoc\source\servicemanager\servicemanager.cxx, 1356)
	utl!utl::UcbLockBytes::setInputStream_Impl+000000D0
	utl!utl::UcbLockBytes::CreateInputLockBytes+00000071
	utl!utl::UcbStreamHelper::CreateStream+0000001F
	utl!utl::UcbStreamHelper::CreateStream+000000EE
	sw!SwGrfNode::_GetStreamForEmbedGrf+00000273
	sw!SwGrfNode::SwapGraphic+000000DB
	sw!SwGrfNode::LinkStubSwapGraphic+0000000E
	...
Comment 1 zhang jianfang 2012-06-10 07:19:49 UTC
Created attachment 78215 [details]
patch for file sal\osl\w32\file_dirvol.cxx
Comment 2 zhang jianfang 2012-06-10 07:55:55 UTC
delivered to trunk by revision r1348543.
Comment 3 zhang jianfang 2012-06-10 07:55:55 UTC
delivered to trunk by revision r1348543.
Comment 4 zhang jianfang 2012-07-03 11:19:34 UTC
verified