Updated HASH_SIZE to 25
Added sanity check for malloc return values.

Signed-off-by: Furquan Shaikh <furquan.m.shaikh@gmail.com>