asn1: Revert heim_object_t support

This commit is contained in:
Nicolas Williams
2022-01-28 11:29:30 -06:00
committed by Nico Williams
parent 327ec7e75c
commit 4748f3a19d
13 changed files with 28 additions and 101 deletions

View File

@@ -190,10 +190,7 @@ generate_type_free (const Symbol *s)
free_type ("data", s->type, preserve);
while (decorate_type(s->gen_name, &deco, &more_deco)) {
if (deco.heim_object) {
fprintf(codefile, "heim_release((data)->%s);\n", deco.field_name);
fprintf(codefile, "(data)->%s = 0;\n", deco.field_name);
} else if (deco.ext && deco.free_function_name == NULL) {
if (deco.ext && deco.free_function_name == NULL) {
/* Decorated with field of external type but no free function */
if (deco.ptr)
fprintf(codefile, "(data)->%s = 0;\n", deco.field_name);