summaryrefslogtreecommitdiff
path: root/backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-10 03:05:12 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-10 03:05:12 +0000
commit2bc2b430bc4c1a9a0bfd1c01da68bd53bf7da052 (patch)
treea2af4fd609c7decacbf0ea11926ea338596fb179 /backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch
parent0ae9f87336a3d78d8fbc0a1e5c75cba5f9cf8597 (diff)
automatic import of rpm
Diffstat (limited to 'backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch')
-rw-r--r--backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch b/backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch
new file mode 100644
index 0000000..baeb339
--- /dev/null
+++ b/backport-Fix-a-memleak-in-ndb-from-opened-but-not-closed-dbis.patch
@@ -0,0 +1,26 @@
+From 5c5cd9f30b31f0255a484f7d2e3f9cfacc0ec3bf Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Wed, 15 Dec 2021 10:01:41 +0200
+Subject: [PATCH] Fix a memleak in ndb from opened but not closed dbis.
+
+Fixes: #1861
+---
+ lib/backend/ndb/glue.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/backend/ndb/glue.c b/lib/backend/ndb/glue.c
+index 7ba3056..d528ebc 100644
+--- a/lib/backend/ndb/glue.c
++++ b/lib/backend/ndb/glue.c
+@@ -77,7 +77,7 @@ static int ndb_Close(dbiIndex dbi, unsigned int flags)
+ }
+ if (rdb->db_dbenv)
+ closeEnv(rdb);
+- dbi->dbi_db = 0;
++ dbiFree(dbi);
+ return 0;
+ }
+
+--
+1.8.3.1
+