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; + } }