From 6be2324677233f24dc3c5717b0b5aa224fd7dd1b Mon Sep 17 00:00:00 2001 From: "Sanford Rockowitz (/shared/home/rock/dot_gitconfig)" Date: Wed, 24 Nov 2021 18:50:31 -0500 Subject: [PATCH] free_regex_hash_table(): set regex_hash_table = NULL --- src/util/sysfs_filter_functions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/sysfs_filter_functions.c b/src/util/sysfs_filter_functions.c index 332aa7609..2a53f02e2 100644 --- a/src/util/sysfs_filter_functions.c +++ b/src/util/sysfs_filter_functions.c @@ -43,8 +43,10 @@ GHashTable* get_regex_hash_table() { void free_regex_hash_table() { - if (regex_hash_table) + if (regex_hash_table) { g_hash_table_destroy(regex_hash_table); + regex_hash_table = NULL; + } }