From 48d099a85a3293074070ca91f4465f479cb3b90c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 2 Mar 2013 11:47:26 +0100 Subject: [PATCH] coverity#705725: fix memory leak Change-Id: I862ea9c4958497cc338b93bd0852c0b1494aee81 --- sot/source/sdstor/stgdir.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index 31c2de2f205c..dedb7cd3f690 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -883,6 +883,10 @@ void StgDirStrm::SetupEntry( sal_Int32 n, StgDirEntry* pUpper ) SetupEntry( nRight, pUpper ); SetupEntry( nLeaf, pCur ); } + else + { + delete pCur; + } } }