Changeset 99b18a876a3d4ec5c15c811d87927341584e0ccc

Show
Ignore:
Timestamp:
02/04/12 20:06:30 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1328385990 -0500
git-parent:

[d659a9d1a9285c0627fb0b3114abefade0b0730b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1328385990 -0500
Message:

assorted valgrind exposed memory leaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/ip_acl.c

    rc446502 r99b18a8  
    158158  gettimeofday(&current.whence, NULL); 
    159159  snprintf(deny_msg, sizeof(deny_msg), "prevented by ACL '%s'", k ? k : "unknown"); 
    160   current.status = strdup(deny_msg)
     160  current.status = deny_msg
    161161  noit_check_set_stats(self, check, &current); 
    162162  return NOIT_HOOK_DONE; 
  • src/modules/snmp.c

    rd659a9d r99b18a8  
    332332static int noit_snmp_session_cleanse(struct target_session *ts) { 
    333333  if(ts->refcnt == 0 && ts->sess_handle) { 
    334     eventer_remove_fd(ts->fd); 
     334    eventer_t e; 
     335    e = eventer_remove_fd(ts->fd); 
     336    if(e) eventer_free(e); 
    335337    ts->fd = -1; 
    336338    if(ts->timeoutevent) { 
  • src/noit_conf.c

    r80f4747 r99b18a8  
    671671  backingstore_include_cnt = cnt; 
    672672  noitL(noit_debug, "Processed %d backing stores.\n", backingstore_include_cnt); 
     673 
     674 includes: 
    673675  if(pobj) xmlXPathFreeObject(pobj); 
    674  
    675  includes: 
    676676  config_include_cnt = 0; 
    677677  pobj = xmlXPathEval((xmlChar *)"//include[@file]", mix_ctxt); 
  • src/noit_listener.c

    rc172fd5 r99b18a8  
    9595          eventer_name_for_callback(e->callback), 
    9696          e->fd, ac->remote_cn ? ac->remote_cn : "anonymous"); 
     97    if(listener_closure) free(listener_closure); 
    9798    return e->callback(e, mask, e->closure, tv); 
    9899  }