From: Arran Cudbard-Bell Date: Wed, 31 Jan 2018 17:47:24 +0000 (-0700) Subject: Use const free when freeing reply in fr_radius_tracking_entry_reply X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bf202b59a16d26fe015aadf514c962b907c6faa;p=thirdparty%2Ffreeradius-server.git Use const free when freeing reply in fr_radius_tracking_entry_reply --- diff --git a/src/modules/proto_radius/track.c b/src/modules/proto_radius/track.c index d4bfc8b51f1..bc74c2e9ba4 100644 --- a/src/modules/proto_radius/track.c +++ b/src/modules/proto_radius/track.c @@ -298,7 +298,7 @@ int fr_radius_tracking_entry_reply(fr_tracking_t *ft, fr_tracking_entry_t *entry * If there *is* a logic error somewhere * don't leak memory. */ - if (!fr_cond_assert(entry->reply == NULL)) talloc_free(entry->reply); + if (!fr_cond_assert(entry->reply == NULL)) talloc_const_free(entry->reply); /* * Bad packets are "don't reply"