Bug 19208 - terminate called after throwing an instance of 'std::bad_alloc'

Summary: terminate called after throwing an instance of 'std::bad_alloc'