]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove useless code (CID #1519003)
authorNick Porter <nick@portercomputing.co.uk>
Mon, 16 Jan 2023 12:06:47 +0000 (12:06 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 16 Jan 2023 12:06:47 +0000 (12:06 +0000)
src/lib/util/slab.h

index 791dd96f3c3647c2ad10e3f14f7d069029115100..e838fcbce26ef94b7eb34c32492705e183b1a89e 100644 (file)
@@ -245,7 +245,6 @@ extern "C" {
                                talloc_set_destructor(new_element, _ ## _type ## _element_free); \
                                fr_ ## _name ## _slab_element_insert_tail(&slab->avail, new_element); \
                                new_element->slab = slab; \
-                               new_element += sizeof(new_element); \
                        } \
                        /* Initialisation of new elements done after allocation to ensure \
                         * are all allocated from the pool.  Without this, any talloc done \