From ea4555100a9079f1729afabdd7046d1826b052fd Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 3 Mar 2013 04:10:17 +0100 Subject: [PATCH] coverity#705669: fix memory leak Change-Id: Ib99c5e5c4a8c3c6efd0ff0665c73b241790b314b --- jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index bbffc8c3983f..c94b8b41f498 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -109,7 +109,10 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) aVendor != "BEA Systems, Inc." && aVendor != "Free Software Foundation, Inc." && aVendor != "The FreeBSD Foundation" ) + { + jfw_freeJavaInfo(pInfo); return 0; + } rtl::OString sPaths = getLD_LIBRARY_PATH(pInfo->arVendorData); fprintf(stdout, "%s\n", sPaths.getStr());