----------------------------------------------- PPic_FreeDatabase Purpose: Frees up memory associated with the databases ------------------------------------------------
| 603 | // Frees up memory associated with the databases |
| 604 | // ------------------------------------------------ |
| 605 | void PPic_FreeDatabase(void) { |
| 606 | |
| 607 | for (int i = 0; i < 27; i++) |
| 608 | Alphabet_to_offset[i] = -1; |
| 609 | |
| 610 | if (Pilot_id_to_offset) { |
| 611 | mem_free(Pilot_id_to_offset); |
| 612 | Pilot_id_to_offset = NULL; |
| 613 | } |
| 614 | if (Sorted_Pilot_id_to_offset) { |
| 615 | mem_free(Sorted_Pilot_id_to_offset); |
| 616 | Sorted_Pilot_id_to_offset = NULL; |
| 617 | } |
| 618 | |
| 619 | PilotPic_count = 0; |
| 620 | } |
| 621 | |
| 622 | // ------------------------------------------------- |
| 623 | // PPic_JumpToPilot |
no outgoing calls
no test coverage detected