]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/ferr.c
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / ferr.c
index 5998befec2e25d8e51d76d5a32dc6885b3c2e557..33bcb075fa5ffb6e2261a1df11d8df77f12b2355 100644 (file)
@@ -180,9 +180,7 @@ void log_ref_init(void)
 void log_ref_fini(void)
 {
        frr_with_mutex (&refs_mtx) {
-               hash_clean(refs, NULL);
-               hash_free(refs);
-               refs = NULL;
+               hash_clean_and_free(&refs, NULL);
        }
 }