forked from pool/openldap2
Jan Engelhardt
17245dd92c
- Backported one hunk from upstream commit fb9e6a81bbee as openldap2-fb9e6a81bbee.patch to fix incompatible pointer type being passed to a function which is diagnosed as an error by GCC 14. If the request is OK, please forward it to Factory soon so that we can switch the default compiler. Thanks! OBS-URL: https://build.opensuse.org/request/show/1190307 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=323
17 lines
508 B
Diff
17 lines
508 B
Diff
diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c
|
|
index 6bdf3151d..56212151b 100644
|
|
--- a/libraries/liblmdb/mdb.c
|
|
+++ b/libraries/liblmdb/mdb.c
|
|
@@ -4692,6 +4692,11 @@ mdb_env_close0(MDB_env *env, int excl)
|
|
|
|
if (env->me_flags & MDB_ENV_TXKEY) {
|
|
pthread_key_delete(env->me_txkey);
|
|
+
|
|
+ // No need to call desctructor anymore, as all pid
|
|
+ // values are cleared below.
|
|
+ env->me_txkey = NULL;
|
|
+
|
|
#ifdef _WIN32
|
|
/* Delete our key from the global list */
|
|
for (i=0; i<mdb_tls_nkeys; i++)
|