Avoid memory leak on error
Avoid memory leak on error

This was found on an internal Red Hat scan with multiple fuzzers.

Signed-off-by: Simo Sorce <65f99581a93cf30dafc32b5c178edc6b0294a07f@redhat.com>

mouse07410/asn1c,mojmir-svoboda/asn1c,hongyunnchen/asn1c,khmseu/asn1c,khmseu/asn1c,khmseu/asn1c,xxkkk/asn1c,khmseu/asn1c,hongyunnchen/asn1c,hongyunnchen/asn1c,xxkkk/asn1c,mouse07410/asn1c,mojmir-svoboda/asn1c,mouse07410/asn1c,mojmir-svoboda/asn1c,mojmir-svoboda/asn1c,hongyunnchen/asn1c,xxkkk/asn1c,xxkkk/asn1c,mouse07410/asn1c