File 0009-add-missing-close-env-as-pointed-out-by-Lo-c-Yhuel.patch of Package baloo5

From 377e62b0307839edb0245d65381a3f55f594ae4e Mon Sep 17 00:00:00 2001
From: Christoph Cullmann <cullmann@kde.org>
Date: Sun, 11 Sep 2016 22:30:18 +0200
Subject: [PATCH 09/13] =?UTF-8?q?add=20missing=20close=20env,=20as=20point?=
 =?UTF-8?q?ed=20out=20by=20Lo=C3=AFc=20Yhuel=20Missed=20in=20my=20review?=
 =?UTF-8?q?=20diff=20:/?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

REVIEW: 128890
BUG: 353783
---
 src/engine/database.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/engine/database.cpp b/src/engine/database.cpp
index 37b8e97..c83f540 100644
--- a/src/engine/database.cpp
+++ b/src/engine/database.cpp
@@ -119,6 +119,7 @@ bool Database::open(OpenMode mode)
     QByteArray arr = QFile::encodeName(indexInfo.absoluteFilePath());
     rc = mdb_env_open(m_env, arr.constData(), MDB_NOSUBDIR | MDB_NOMEMINIT, 0664);
     if (rc) {
+        mdb_env_close(m_env);
         m_env = nullptr;
         return false;
     }
-- 
2.10.0