From: Thomas Markwalder Date: Fri, 17 Apr 2026 15:17:42 +0000 (-0400) Subject: [#4441] Fixed asan leak X-Git-Tag: Kea-3.1.8~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5466f5d57838b2cd8209b51b699ea2ca337f2e68;p=thirdparty%2Fkea.git [#4441] Fixed asan leak modified: src/lib/dhcpsrv/sflq_allocator.cc --- diff --git a/src/lib/dhcpsrv/sflq_allocator.cc b/src/lib/dhcpsrv/sflq_allocator.cc index 3f842b805c..3116db99ee 100644 --- a/src/lib/dhcpsrv/sflq_allocator.cc +++ b/src/lib/dhcpsrv/sflq_allocator.cc @@ -100,7 +100,7 @@ SharedFlqAllocator::pickAddressInternal(const ClientClasses& client_classes, while (available.size()) { // Get a random pool from the available ones. auto offset = getRandomNumber(available.size() - 1); - auto const& pool = available[offset]; + PoolPtr const pool = available[offset]; switch (pool_type_) { case Lease::TYPE_V4: { // Ask the lease manager for a lease from the pool. @@ -168,7 +168,7 @@ SharedFlqAllocator::pickPrefixInternal(const ClientClasses& client_classes, while (available.size()) { // Get a random pool from the available ones. auto offset = getRandomNumber(available.size() - 1); - auto const& pool = available[offset]; + PoolPtr const pool = available[offset]; switch(pool_type_) { case Lease::TYPE_V4: isc_throw(Unexpected, "pickAddressInternal called for Lease::TYPE_V4");