Fix memory leak from Coverity #1495786
Minor potential memory leak in Coverity #1495786 coming from bf10206e where the ei variable may leak when returning in the new if (BUG(...)) block.
Minor potential memory leak in Coverity #1495786 coming from bf10206e where the ei variable may leak when returning in the new if (BUG(...)) block.