yfinkelstein/node-zookeeper — pull request #31 by ddopson (2012-01-06 22:41:25+00:00)
Title: Fix for issue 30: segfault when using watchers

https://github.com/yfinkelstein/node-zookeeper/issues/30

Basically I eliminated the call to cb_destroy() for the watcher callback. This probably means that we "leak" a handle to that method (since there's no other place to free it), and in some far fetched scenario where ZK module instances were created and destroyed rapidly, this might matter. But the SIGSEGV is 1000X more painful.