From: Nick Porter Date: Mon, 20 Feb 2023 17:40:32 +0000 (+0000) Subject: Free slab element at the correct place X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af93f7bc8420ea49eb2b471f4cdde151a11a0179;p=thirdparty%2Ffreeradius-server.git Free slab element at the correct place --- diff --git a/src/lib/util/slab.h b/src/lib/util/slab.h index e6f3c1ab90c..2ed76345261 100644 --- a/src/lib/util/slab.h +++ b/src/lib/util/slab.h @@ -330,9 +330,9 @@ DIAG_OFF(unused-function) \ fr_ ## _name ## _slab_insert_tail(&slab_list->avail, slab); \ } \ slab_list->in_use--; \ + element->in_use = false; \ return; \ } \ - element->in_use = false; \ talloc_free(element); \ } \ \