From 5560207d3dd5d627a6faee6c56cfc35d63b7b15f Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Tue, 10 Aug 2021 15:15:39 +0200
Subject: [PATCH] Fixed segmentation fault in empty record templates caused by
 new template types (issues #548, #549 and #550)

Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
---
 compiler2/record.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler2/record.c b/compiler2/record.c
index c7af793e2..1d54fe78e 100644
--- a/compiler2/record.c
+++ b/compiler2/record.c
@@ -7238,6 +7238,7 @@ static void defEmptyRecordTemplate(const char *name, const char *dispname,
 	"case COMPLEMENTED_LIST:\n"
 	"case CONJUNCTION_MATCH:\n"
 	"delete [] value_list.list_value;\n"
+	"break;\n"
 	"case IMPLICATION_MATCH:\n"
   "delete implication_.precondition;\n"
   "delete implication_.implied_template;\n"
-- 
GitLab