[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 3 commits - sd/source soltools/cpp sw/source

Pedro Giffuni pfg at apache.org
Fri Nov 27 12:08:11 PST 2015


 sd/source/filter/sdpptwrp.cxx    |    1 +
 soltools/cpp/_macro.c            |    1 +
 sw/source/core/crsr/findattr.cxx |    2 ++
 3 files changed, 4 insertions(+)

New commits:
commit 4d01e7b5dc3eed1c13566f7707b462b586ec0396
Author: Pedro Giffuni <pfg at apache.org>
Date:   Fri Nov 27 17:13:16 2015 +0000

    Resource leak
    
    CID:	736451

diff --git a/sd/source/filter/sdpptwrp.cxx b/sd/source/filter/sdpptwrp.cxx
index 789adbc..2a16dcc 100644
--- a/sd/source/filter/sdpptwrp.cxx
+++ b/sd/source/filter/sdpptwrp.cxx
@@ -197,6 +197,7 @@ void SdPPTFilter::PreSaveBasic()
             {
                 pSaveVBA( (SfxObjectShell&) mrDocShell, pBas );
             }
+            delete pLibrary;
         }
     }
 }
commit f154a24da794c7f26c7638eee859ce14136e90fc
Author: Pedro Giffuni <pfg at apache.org>
Date:   Fri Nov 27 16:58:02 2015 +0000

    Resource leak
    
    CID:	736503

diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index 09c3e4d..ce47884 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -480,6 +480,7 @@ int SwAttrCheckArr::SetAttrFwd( const SwTxtAttr& rAttr )
         else
             break;
     }
+    delete pIter;
     return Found();
 }
 
@@ -639,6 +640,7 @@ int SwAttrCheckArr::SetAttrBwd( const SwTxtAttr& rAttr )
         else
             break;
     }
+    delete pIter;
     return Found();
 }
 
commit 9a9cfba842e248c8d3d4731ee875f7fc90a66b8f
Author: Pedro Giffuni <pfg at apache.org>
Date:   Fri Nov 27 16:09:47 2015 +0000

    Resource leak
    
    overwrite_var: Overwriting "args" in "args = tap" leaks the storage that
    "args" points to
    
    CID:	983184

diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c
index 4400a02d..3b35bfe 100644
--- a/soltools/cpp/_macro.c
+++ b/soltools/cpp/_macro.c
@@ -137,6 +137,7 @@ void
 
         tap = normtokenrow(args);
         dofree(args->bp);
+        dofree(args);
         args = tap;
     }
     np->ap = args;


More information about the Libreoffice-commits mailing list