Memory allocation issue detected by coverity CID 25814
Replace CALLOC my MALLOC

For @karlnapf.
Merge pull request #2147 from tklein23/coverity_error_cid_25814

Memory allocation issue detected by coverity CID 25814