MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / vaporize

Function vaporize

src/rig.c:588–602  ·  view source on GitHub ↗

Final cleanup of rig structure * * Release all allocations for this rig, including the rig_struct * Clear them to catch use-after-free errors */

Source from the content-addressed store, hash-verified

586 * Clear them to catch use-after-free errors
587 */
588static 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.

Callers 2

rig.cFile · 0.85
rig_cleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected