errors in malloc/calloc/realloc now throw OutOfMemoryError
Added IOError