FreeRDP/FreeRDP — pull request #582 by littlejawa (2012-05-07 13:46:41+00:00)
Title: Replaced 'malloc' calls by xmalloc or xzalloc as appropriate.

This will make sure we get an appropriate error message in case of memory allocation error, and not just a "Segmentation Fault"

serial_tty.c: Added some validation on xzalloc return in serial_tty_new to properly deallocate resources when an error occurs.