Skip to content

Commit

Permalink
free_regex_hash_table(): set regex_hash_table = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Nov 24, 2021
1 parent 3882223 commit 6be2324
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/sysfs_filter_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}


Expand Down

0 comments on commit 6be2324

Please sign in to comment.