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

[065b0349f122c8e5f44538bed5636ea8b49362b6]

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

check code consolidation. allow modules to be more terse and add convenience functions to make writing completely asynch checkers much easier. (add a postgres proof-of-concept asynch checker

Files:

Legend:

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

    ref59bc7 r4b96846  
    439439 
    440440  mod = noit_module_lookup(checker->module); 
    441   mod->cleanup(mod, checker); 
     441  if(mod->cleanup) mod->cleanup(mod, checker); 
    442442  if(checker->fire_event) { 
    443443     eventer_remove(checker->fire_event); 
     444     free(checker->fire_event->closure); 
    444445     eventer_free(checker->fire_event); 
    445446     checker->fire_event = NULL; 
    446447  } 
    447  
     448  if(checker->closure) free(checker->closure); 
    448449  if(checker->target) free(checker->target); 
    449450  if(checker->module) free(checker->module);