Fixed use after free.
This commit is contained in:
parent
463567f7dd
commit
22dfd5a117
1 changed files with 2 additions and 1 deletions
|
@ -492,10 +492,11 @@ static void * nbw_worker(void * handle) {
|
||||||
pthread_mutex_lock(&impl->mut);
|
pthread_mutex_lock(&impl->mut);
|
||||||
node->pin_count--;
|
node->pin_count--;
|
||||||
}
|
}
|
||||||
|
tree_node * new_node = (tree_node*)RB_ENTRY(lookup)(RB_LUGREAT, node, impl->fast_handles);
|
||||||
if(!node->dirty && !node->pin_count) {
|
if(!node->dirty && !node->pin_count) {
|
||||||
freeFastHandle(impl, node);
|
freeFastHandle(impl, node);
|
||||||
}
|
}
|
||||||
node = (tree_node*)RB_ENTRY(lookup)(RB_LUGREAT, node, impl->fast_handles);
|
node = new_node;
|
||||||
}
|
}
|
||||||
if(!impl->fast_handle_count || !writes) {
|
if(!impl->fast_handle_count || !writes) {
|
||||||
if(impl->still_open) {
|
if(impl->still_open) {
|
||||||
|
|
Loading…
Reference in a new issue