From: Alan T. DeKok Date: Sun, 23 Feb 2025 12:49:50 +0000 (-0500) Subject: the underlying "da" may have already been freed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8066decc053fcfacef105090a4191b6f098795f4;p=thirdparty%2Ffreeradius-server.git the underlying "da" may have already been freed if it was re-written --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 8762fbe637e..6e9136b83e2 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -1025,7 +1025,7 @@ static int dict_read_process_common(dict_tokenize_ctx_t *dctx, fr_dict_attr_t ** */ if (dict_process_type_field(dctx, type_name, &da) < 0) { error: - talloc_free(to_free); + if (da == to_free) talloc_free(to_free); return -1; }