check malloc return for code in rabin2.c
Merge pull request #915 from zonkzonk/master

check malloc return for code in rabin2.c