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