Changeset 4c05448ea043aaf96b94270f68092553c96ccd9d

Show
Ignore:
Timestamp:
04/25/08 22:03:40 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1209161020 +0000
git-parent:

[1b3ee6a15905bfa32b67dc3d5172810a5371f5e0]

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

little bits of valgrind ecstasy

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_epoll_impl.c

    re218b2e r4c05448  
    113113 
    114114  /* file descriptor event */ 
    115   _ev.events = 0
     115  memset(&_ev, 0, sizeof(_ev))
    116116  _ev.data.fd = e->fd; 
    117117  if(e->mask & EVENTER_READ) _ev.events |= (EPOLLIN|EPOLLPRI); 
     
    134134    ev_lock_state_t lockstate; 
    135135    struct epoll_event _ev; 
    136     _ev.events = 0
     136    memset(&_ev, 0, sizeof(_ev))
    137137    _ev.data.fd = e->fd; 
    138138    lockstate = acquire_master_fd(e->fd); 
     
    168168    return; 
    169169  } 
    170   _ev.events = 0
     170  memset(&_ev, 0, sizeof(_ev))
    171171  _ev.data.fd = e->fd; 
    172172  if(e->mask & (EVENTER_READ | EVENTER_WRITE | EVENTER_EXCEPTION)) { 
     
    182182  if(master_fds[fd].e) { 
    183183    struct epoll_event _ev; 
    184     _ev.events = 0
     184    memset(&_ev, 0, sizeof(_ev))
    185185    _ev.data.fd = fd; 
    186186    lockstate = acquire_master_fd(fd); 
     
    293293        if(newmask) { 
    294294          struct epoll_event _ev; 
    295           _ev.events = 0
     295          memset(&_ev, 0, sizeof(_ev))
    296296          _ev.data.fd = fd; 
    297297          if(newmask & EVENTER_READ) _ev.events |= (EPOLLIN|EPOLLPRI); 
  • src/modules/http.c

    ra10dd1c r4c05448  
    226226        } 
    227227      } 
     228      xmlXPathFreeContext(xpath_ctxt); 
    228229    } 
    229230  } 
  • src/modules/ping_icmp.c

    ra504323 r4c05448  
    184184    if(icp->icmp_id != (((vpsized_uint)self) & 0xffff)) { 
    185185      noitLT(nlerr, now, 
    186                "ping_icmp not sent from this instance (%d:%d) vs. %d\n", 
     186               "ping_icmp not sent from this instance (%d:%d) vs. %lu\n", 
    187187               icp->icmp_id, ntohs(icp->icmp_seq), 
    188188               (((vpsized_uint)self) & 0xffff)); 
     
    414414    add_timeval(when, p_int, &when); /* Next one is a bit later */ 
    415415 
    416     icp = malloc(packet_len); 
     416    icp = calloc(1,packet_len); 
    417417    payload = (struct ping_payload *)(icp + 1); 
    418418 
  • src/noit_conf.c

    re218b2e r4c05448  
    287287    goto found; 
    288288  } 
     289  if(current_ctxt && current_ctxt != xpath_ctxt) 
     290    xmlXPathFreeContext(current_ctxt); 
    289291  return 0; 
    290292 found: