calloc instead of malloc/memset. from Benjamin Baier
heartbearts->heartbeats fix

From Marcos Marado:

OK from tedu@
-noout mentions a CRL, which is incorrect. Use "no output of encoded session
info." instead.

From Martin Kaiser.

OK from tedu@
Fix resource descriptor leaks.

CID: 966576 & 966577

OK from guenther@ and "Yup. looks good." from tedu@