[Libreoffice-commits] core.git: jvmfwk/source

Caolán McNamara caolanm at redhat.com
Mon Oct 13 08:45:37 PDT 2014


 jvmfwk/source/framework.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 1156d11ef0bb2bc3d71ae9299656db4fed66f073
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 13 10:31:14 2014 +0100

    coverity#1066164 Resource leak
    
    Change-Id: I152f22728a8eeea65114fe102511940bccf40478
    Signed-off-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index bdb75f7..a604164 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -732,6 +732,8 @@ javaFrameworkError SAL_CALL jfw_setSelectedJRE(JavaInfo const *pInfo)
             //remember that the JRE was selected in this process
             jfw::setJavaSelected();
         }
+
+        jfw_freeJavaInfo(currentInfo);
     }
     catch (const jfw::FrameworkException& e)
     {


More information about the Libreoffice-commits mailing list