diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-02 11:47:26 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-03 04:35:07 +0100 |
commit | 48d099a85a3293074070ca91f4465f479cb3b90c (patch) | |
tree | eb67b90f318cb5ebfff57a3d69e909ba41884909 /sot | |
parent | 887ed7f13b3555caaf6d8f3622cd140cc72a51cb (diff) |
coverity#705725: fix memory leak
Change-Id: I862ea9c4958497cc338b93bd0852c0b1494aee81
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; + } } } |