FACT++  1.0
int freeMemory ( void *  addr)

Definition at line 3912 of file feeserver.c.

References createLogMessage(), findMemoryNode(), and freeMemoryNode().

3912  {
3913  MemoryNode* memNode = 0;
3914  if (addr == 0) {
3915  // received NULL pointer
3916  createLogMessage(MSG_WARNING,
3917  "Received an NULL pointer for freeing memory, discarding call!", 0);
3918 # ifdef __DEBUG
3919  printf("Received an NULL pointer for freeing memory, discarding call! \n");
3920  fflush(stdout);
3921 # endif
3922  return FEE_NULLPOINTER;
3923  }
3924 
3925  memNode = findMemoryNode(addr);
3926  if (memNode == 0) {
3927  // memory pointer id not found in list
3928  return FEE_INVALID_PARAM;
3929  }
3930 
3931  freeMemoryNode(memNode);
3932  return FEE_OK;
3933 }
MemoryNode * findMemoryNode(void *addr)
Definition: feeserver.c:3691
void createLogMessage(unsigned int type, char *description, char *origin)
Definition: feeserver.c:1530
void freeMemoryNode(MemoryNode *node)
Definition: feeserver.c:3812

+ Here is the call graph for this function: