Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Adding this comment to keep audit and fapolicyd in sync for this file.
  • Loading branch information
stevegrubb committed May 10, 2024
1 parent 001c532 commit 5a8f685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/library/lru.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ static void destroy_queue(Queue *queue)
{
dump_queue_stats(queue);

// Some static analysis scanners try to flag this as a use after
// free accessing queue->end. This is a false positive. It is freed.
// However, static analysis apps are incapable of seeing that in
// remove_node, end is updated to a prior node as part of detaching
// the current end node.
while (queue->count)
dequeue(queue);

Expand Down

0 comments on commit 5a8f685

Please sign in to comment.