]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix heap tests
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Aug 2021 18:06:18 +0000 (13:06 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 18 Aug 2021 18:06:57 +0000 (13:06 -0500)
src/lib/util/heap_tests.c

index 677751861defb6421228989a3ff275e3f7b314cc..c182d701c5d08663de1788e07c7c9d7bb3414cd5 100644 (file)
@@ -7,6 +7,8 @@ static bool fr_heap_check(fr_heap_t *hp, void *data)
 {
        unsigned int i;
 
+       HEAP_DEREF(hp);
+
        if (!hp || (hp->num_elements == 0)) return false;
 
        for (i = 0; i < hp->num_elements; i++) {