Free a PageRef array (sep_cell allocations), unless it's the original leaves.
| 739 | |
| 740 | // Free a PageRef array (sep_cell allocations), unless it's the original leaves. |
| 741 | static void free_children(PageRef *children, int child_count, const PageRef *leaves) { |
| 742 | if (children != leaves) { |
| 743 | for (int j = 0; j < child_count; j++) { |
| 744 | free(children[j].sep_cell); |
| 745 | } |
| 746 | free(children); |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | // Take the most recently placed cell back off an interior page (it is always |
| 751 | // the lowest one in the content area) and zero its bytes, so the page is |