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:
Leo Yuriev 2015-12-10 00:22:01 +03:00
parent 2d2a3ebcfb
commit dec88f8c35

1
mdb.c
View File

@ -4966,7 +4966,6 @@ mdb_env_close0(MDB_env *env)
mdb_ensure(env, rthc->rc_reader == reader);
rthc->rc_reader = NULL;
reader->mr_rthc = NULL;
free(rthc);
}
reader->mr_pid = 0;
}