From 4a058ae0f5b58b87ebb568c13fcf4a91fbbb797b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 20:24:12 +0200 Subject: trigger: remove check of NULL pointers before calling trigger_free() (issue #865) --- tests/unit/plugins/trigger/test-trigger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit') diff --git a/tests/unit/plugins/trigger/test-trigger.cpp b/tests/unit/plugins/trigger/test-trigger.cpp index cc974051c..a0b77a020 100644 --- a/tests/unit/plugins/trigger/test-trigger.cpp +++ b/tests/unit/plugins/trigger/test-trigger.cpp @@ -629,7 +629,7 @@ TEST(Trigger, New) POINTERS_EQUAL(NULL, trigger_search_with_option (NULL)); POINTERS_EQUAL(NULL, trigger_search_with_option (config_look_day_change)); - /* invalid free */ + /* test free of NULL trigger */ trigger_free (NULL); } -- cgit v1.2.3