You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2023/03/12 20:52:44 UTC

[openoffice] branch AOO41X updated: Resource leak

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new 602bfd8ad8 Resource leak
602bfd8ad8 is described below

commit 602bfd8ad8f6210de4dba4f7d80e0c720420cd0b
Author: Pedro Giffuni <pf...@apache.org>
AuthorDate: Tue Nov 24 15:33:04 2015 +0000

    Resource leak
    
    CID:    1229496
    
    git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1716174 13f79535-47bb-0310-9956-ffa450edef68
    (cherry picked from commit 20a3ff3db7d26d160f49eb54a787f076b2d072d3)
---
 main/sot/source/sdstor/stgdir.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/sot/source/sdstor/stgdir.cxx b/main/sot/source/sdstor/stgdir.cxx
index afa4fa7bba..37ed8bc733 100644
--- a/main/sot/source/sdstor/stgdir.cxx
+++ b/main/sot/source/sdstor/stgdir.cxx
@@ -911,6 +911,8 @@ void StgDirStrm::SetupEntry (
             SetupEntry( nRight, pUpper, nEntryCount, nDepth+1);
             SetupEntry( nLeaf, pCur, nEntryCount, nDepth+1);
         }
+        else
+            delete pCur;
     }
 }