From 0885d16ac22a0ecd2267bf3c8818a3a8a5a9dadb Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Fri, 31 Jul 2026 07:48:54 +0000
Subject: [PATCH] Fix CodeQL warning-severity alerts: missed wakeups, resource leaks, escaping threads (#790)
---
opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java
index faaab66..892643d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2014-2016 ForgeRock AS.
- * Portions Copyright 2025 3A Systems,LLC
+ * Portions Copyright 2025-2026 3A Systems, LLC.
*/
package org.opends.server.config;
@@ -1405,7 +1405,8 @@
{
byte[] buffer = new byte[8192];
try(FileInputStream inputStream = new FileInputStream(configFile);
- GZIPOutputStream outputStream = new GZIPOutputStream(new FileOutputStream(archiveFile)))
+ FileOutputStream archiveStream = new FileOutputStream(archiveFile);
+ GZIPOutputStream outputStream = new GZIPOutputStream(archiveStream))
{
int bytesRead = inputStream.read(buffer);
while (bytesRead > 0)
--
Gitblit v1.10.0