phalcon/cphalcon — pull request #1375 by sjinks (2013-10-13 12:13:54+00:00)
Title: Fix bugs found by valgrind and static code analysers

This PR fixes (almost) all errors found by [scan-build](http://clang-analyzer.llvm.org/scan-build.html) plus bugs found by Valgrind (#1368, #1369, #1370, #1371)