protocol/client: add memory allocation checks
protocol/client: add memory allocation checks

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 431 (segfault in timer thread :O)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=431

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster