fixed memory allocation bugs in sqlite histogram
Merge branch 'master' of github.com:simsong/be13_api