FACT++  1.0
void freeMemoryNode ( MemoryNode *  node)

Definition at line 3812 of file feeserver.c.

References Memory::free().

Referenced by cleanupMemoryList(), command_handler(), and freeMemory().

3812  {
3813  if (node == 0) {
3814  return;
3815  }
3816 
3817  // free memory corresponding to this node
3818  if (node->ptr != 0) {
3819  free(node->ptr);
3820  }
3821 
3822  // redirect links in doubly linked list
3823  if (node->next != 0) {
3824  node->next->prev = node->prev;
3825  } else {
3827  }
3828 
3829  if (node->prev != 0) {
3830  node->prev->next = node->next;
3831  } else {
3833  }
3834 
3835  //free node itself
3836  free(node);
3837 }
Definition: dns.c:26
static MemoryNode * lastMemoryNode
Definition: feeserver.c:322
static MemoryNode * firstMemoryNode
Definition: feeserver.c:316
void free(void *mem)
struct node * next
Definition: dns.c:29
struct node * prev
Definition: dns.c:30

+ Here is the call graph for this function:

+ Here is the caller graph for this function: