#5272: Use calloc instead malloc