From 50c5d2f91b764115522af492d4830a9417fdc2ec Mon Sep 17 00:00:00 2001 From: zhengchao Date: Wed, 5 Jun 2019 20:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E6=AF=81=E5=88=86=E7=BB=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=EF=BC=8C=E5=A4=84=E7=90=86=E4=B8=8D=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E4=BB=BB=E4=BD=95=E5=9F=9F=E7=9A=84region=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_rule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 538cccc..9371b32 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -860,7 +860,7 @@ struct Maat_group_inner* create_group_rule(int group_id, struct Maat_scanner_t * } void _destroy_group_rule(struct Maat_group_inner* group) { - dynamic_array_destroy(group->regions,free); + if(group->regions) dynamic_array_destroy(group->regions,free); group->region_cnt=0; group->region_boundary=0; group->regions=NULL;