Fixed memory, db handle leaks
Merge branch 'master' of https://github.com/snaiper80/libzdb