don't throw exceptions allocated on free store
Merge pull request #1 from rddt/fix-throw-new

don't throw exceptions allocated on free store