add support for git-review
coverity: fix memory leak
coverity: init members