summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2021-04-29 14:50:49 +0800
committerliuxueli <[email protected]>2021-04-29 14:50:49 +0800
commit38835c9634d6c0cf0a4e71dc9669c022af7a10a2 (patch)
tree59c6091d2d1c04bdf7ef1350cad549d2fed3f1a0
parent441b0d15841283a681b3034bc783499e308acf07 (diff)
修复内存泄漏v3.5.0
-rw-r--r--src/tsg_rule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index bb645b9..51ccdf1 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -593,6 +593,9 @@ void security_compile_new(int idx, const struct Maat_rule_t* rule, const char* s
{
user_region->html_profile=item->valueint;
}
+
+ cJSON_Delete(object);
+ object=NULL;
}
}