Changeset ff59a235bf7709ecadf94d1b38a0efeb335345da

Show
Ignore:
Timestamp:
05/06/10 13:01:02 (8 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1273150862 +0000
git-parent:

[33a8e3d75e397f299755e099524ee8cc24473770]

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

this code path was missing appropriate tear down, fixes #276

Files:

Legend:

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

    r5bb306c rff59a23  
    439439    if(len == 0 || (len < 0 && errno != EAGAIN)) { 
    440440      eventer_remove_fd(e->fd); 
    441       close(e->fd); 
     441      if(ncct) noit_console_closure_free(ncct); 
     442      if(ac) acceptor_closure_free(ac); 
     443      e->opset->close(e->fd, &newmask, e); 
    442444      return 0; 
    443445    } 
     
    500502static int 
    501503noit_console_logio_close(noit_log_stream_t ls) { 
     504  noit_console_closure_t ncct; 
     505  ncct = noit_log_stream_get_ctx(ls); 
     506  if(!ncct) return 0; 
     507  ncct->e = NULL; 
    502508  noit_log_stream_set_ctx(ls, NULL); 
    503509  return 0;