Fix bug #3150, "etpan_certificate_check() leaks memory"