Show
Ignore:
Timestamp:
04/27/08 01:17:08 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1209259028 +0000
git-parent:

[4c05448ea043aaf96b94270f68092553c96ccd9d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1209259028 +0000
Message:

various valgrind noted leaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check.c

    r4b96846 r01dbb0d  
    187187      noitL(noit_debug, "loaded uuid: %s\n", uuid_str); 
    188188    } 
    189   } 
     189 
     190    noit_hash_destroy(options, free, free); 
     191    free(options); 
     192  } 
     193  if(sec) free(sec); 
    190194} 
    191195 
     
    491495  free(m->metric_name); 
    492496  if(m->metric_value.i) free(m->metric_value.i); 
     497  free(m); 
    493498} 
    494499 
     
    541546  if(cp > s && *cp == '%') *cp-- = '\0'; /* chop a last % is there is one */ 
    542547 
    543   while(*trailer && isspace(*trailer)) *trailer++; /* rtrim */ 
     548  while(*trailer && isspace(*trailer)) *trailer++ = '\0'; /* rtrim */ 
    544549 
    545550  /* string was       '  -1.23e-01%  inodes used  ' */