Changeset - 9cfe67b5fe46
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-10-09 01:37:38

added code to free pointers

@ohnobinki: do I need to free the xmlChar after every time it is used?
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -582,24 +582,27 @@ int createQueueFromXML(struct distrenjob
 

	
 
  // scans the list of all jobs that were in queue before DistRen shutdown
 
  while(cur != NULL)
 
    {
 
      tmp2 = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1);
 
      fprintf(stderr, "adding job: %s", tmp2);
 
      // add job from job number @TODO create function with parameters (struct distrenjob *head, int job_number)
 
      // LordOfWar calls dibs on above todo
 

	
 
      cur = cur->next; // go to next child element of job_list element
 
    }
 

	
 
  xmlFreeDoc(doc);
 
  xmlFree(tmp2);
 

	
 
  return 1;
 
}
 

	
 
/* ************************** Test Functions ************************* */
 
void printFrameInfo(struct frameset *frame)
 
{
 
  char *status;
 

	
 
  status = NULL;
 

	
 
  switch(frame->status)
 
  {
0 comments (0 inline, 0 general)