From: Alan T. DeKok Date: Sat, 27 Jan 2024 13:31:01 +0000 (-0500) Subject: ensure the list is freed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54eb733de8fcd4469e4cadffae0cda0a3b834333;p=thirdparty%2Ffreeradius-server.git ensure the list is freed --- diff --git a/src/lib/util/dict_util.c b/src/lib/util/dict_util.c index ca7f3657777..1b2876c4a9a 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -3303,7 +3303,7 @@ static int dict_autoref_free(fr_dict_t *dict) if (!dict->autoref) return 0; - if (fr_hash_table_flatten(NULL, (void ***)&refd_list, dict->autoref) < 0) { + if (fr_hash_table_flatten(dict->autoref, (void ***)&refd_list, dict->autoref) < 0) { fr_strerror_const("failed flattening autoref hash table"); return -1; }