From a4e6c3378077734038865c7d35fe3c31486d1d6a Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 14 Jan 2022 22:16:21 -0600 Subject: [PATCH] asn1: Fix double-free in asn1parse.y --- lib/asn1/gen_template.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/asn1/gen_template.c b/lib/asn1/gen_template.c index 415572adb..11a5cf3a7 100644 --- a/lib/asn1/gen_template.c +++ b/lib/asn1/gen_template.c @@ -716,6 +716,8 @@ sort_object_set(IOSObjectSet *os, /* Object set to sort fields of */ IOSObject *o; size_t i, nobjs = 0; + *objectsp = NULL; + HEIM_TAILQ_FOREACH(o, os->objects, objects) { ObjectField *typeidobjf = NULL; ObjectField *of;