Final cleanup of rig structure * * Release all allocations for this rig, including the rig_struct * Clear them to catch use-after-free errors */
| 586 | * Clear them to catch use-after-free errors |
| 587 | */ |
| 588 | static void vaporize(RIG *rig) |
| 589 | { |
| 590 | if (CACHE(rig)) |
| 591 | { |
| 592 | free(CACHE(rig)); |
| 593 | CACHE(rig) = NULL; |
| 594 | } |
| 595 | |
| 596 | /* Other buffers go here, as they are converted |
| 597 | * to pointers/calloc - WIP |
| 598 | */ |
| 599 | |
| 600 | free(rig); |
| 601 | return; |
| 602 | } |
| 603 | |
| 604 | /** |
| 605 | * \brief Allocate a new #RIG handle. |
no outgoing calls
no test coverage detected