Skip to content

Commit

Permalink
CID 1187991
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 21, 2014
1 parent 50a6728 commit 56642d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/rbtree.c
Expand Up @@ -472,8 +472,9 @@ static void rbtree_delete_internal(rbtree_t *tree, rbnode_t *z, bool skiplock)
} else {
if (tree->free) tree->free(y->data);

if (y->colour == BLACK)
if ((y->colour == BLACK) && parent) {
delete_fixup(tree, x, parent);
}

talloc_free(y);
}
Expand Down

0 comments on commit 56642d5

Please sign in to comment.