improve error handling in malloc tutorial example
merge 0.19.x branch into master