Updated error with memory leak on division by zero