Show
Ignore:
Timestamp:
04/05/07 18:10:36 (16 years ago)
Author:
andreu
Message:

explicite output to find wrong definition bug - memory leak in renetcolAgg find

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/routers_mgmt.c

    r2 r27  
    2929{ 
    3030  RouterPtr tmp = rL; 
     31  int i = 0; 
    3132  for ( ; tmp; tmp=tmp->next) { 
     33    i++; 
    3234    if ( tmp->IpAddress == address ){ 
     35/*       fprintf (stderr, "ExistRouter %d parcours %lu.%lu.%lu.%lu\ \n",  */ 
     36/*             i, */ 
     37/*             address>>24, */ 
     38/*             address<<8>>24, */ 
     39/*             address<<16>>24, */ 
     40/*             address<<24>>24 */ 
     41/*             ); */ 
    3342      return tmp; 
    3443    } 
    3544  } 
     45/*   fprintf (stderr, "notExistRouter %lu.%lu.%lu.%lu\n", */ 
     46/*         address>>24, */ 
     47/*         address<<8>>24, */ 
     48/*         address<<16>>24, */ 
     49/*         address<<24>>24); */ 
    3650  return NULL; 
    3751} 
     
    4256  RouterPtr tmp = (RouterPtr) malloc(sizeof(struct Router)); 
    4357  if (tmp==NULL) { 
     58    /* FIXME : syslog here */ 
    4459    fprintf(stderr, "ERROR in malloc in add_routers function\n"); 
    4560    exit(1); 
     
    7489  if (ptpl) { 
    7590    while ( ptpl->fieldSet != NULL ){ 
     91/*       fprintf(stderr, "deleteTplFlSet\n"); */ 
    7692      if (!(ptpl->lastField->prev)) { 
    7793        freeField(ptpl->lastField); 
     
    111127  if (ptplo) { 
    112128    while ( ptplo->fieldSet != NULL ){ 
     129/*       fprintf(stderr, "deleteTplFlSet\n"); */ 
    113130      if (!(ptplo->lastField->prev)) { 
    114131        freeField(ptplo->lastField);