fix memleak in Error.cpp