summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-03-23 14:08:29 +0200
committerGitHub <noreply@github.com>2023-03-23 14:08:29 +0200
commit6927446645221898256a6ec37653bb31a301db72 (patch)
tree3039c1a7b7ee98a0da74fe99f7f9ef571825a3fa /lib/command.c
parent9cc377d4d7ccae8a318d0162c5d0d6a6754d8b0a (diff)
parentd8bc11a592110abdd14d11dfcb2ce623653ecab5 (diff)
Merge pull request #13074 from donaldsharp/hash_clean_and_free
*: Add a hash_clean_and_free() function
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/command.c b/lib/command.c
index ee5a3889e8..196d73d46a 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -2596,9 +2596,7 @@ void cmd_terminate(void)
// well
graph_delete_graph(cmd_node->cmdgraph);
vector_free(cmd_node->cmd_vector);
- hash_clean(cmd_node->cmd_hash, NULL);
- hash_free(cmd_node->cmd_hash);
- cmd_node->cmd_hash = NULL;
+ hash_clean_and_free(&cmd_node->cmd_hash, NULL);
}
vector_free(cmdvec);