mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:54:13 +08:00
mdbx: fix double-free on thread-destroy.
Seems this is fixes the https://github.com/ReOpen/ReOpenLDAP/issues/60 Change-Id: I29830a1b9cec0285edc976e6892678cd38e4445c
This commit is contained in:
parent
2d2a3ebcfb
commit
dec88f8c35
1
mdb.c
1
mdb.c
@ -4966,7 +4966,6 @@ mdb_env_close0(MDB_env *env)
|
|||||||
mdb_ensure(env, rthc->rc_reader == reader);
|
mdb_ensure(env, rthc->rc_reader == reader);
|
||||||
rthc->rc_reader = NULL;
|
rthc->rc_reader = NULL;
|
||||||
reader->mr_rthc = NULL;
|
reader->mr_rthc = NULL;
|
||||||
free(rthc);
|
|
||||||
}
|
}
|
||||||
reader->mr_pid = 0;
|
reader->mr_pid = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user