Removed C.free() from checkError()