Removed possible memory leak if any of this malloc calls fails. Fixes #commitcomment-3679961
Merge branch 'master' of git@github.com:searchdaimon/enterprise-search