Added a delete function for the error structure.
One memory leak removed.