Skip to content

Commit

Permalink
Fix infinite loop causing memory leak in GH-1519
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode committed Dec 18, 2023
1 parent ca52cbe commit 1002a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asyncua/common/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ async def _browse_next(self, results: Iterable[ua.BrowseResult]) -> List[ua.Refe
params.ContinuationPoints = [head.ContinuationPoint]
params.ReleaseContinuationPoints = False
results = await self.session.browse_next(params)
head = next(iter(results))
references.extend(head.References)
return references

Expand Down

0 comments on commit 1002a2c

Please sign in to comment.