Memory leak on Pop os 22.04

Author: knobz12Created Mar 5, 2025Updated Mar 5, 2025

Using the basic example multiple times seems to just use more and more memory without releasing it until the program is exited. Am I missing something or is it a problem with the module?

from requests_html import HTMLSession
import time
session = HTMLSession()

while True:
  r = session.get("https://bits.swebowl.se/match-detail?matchid=3274195")
  r.html.render()
  r.html.find('.hide-on-mobile.center-block.top-space')
  time.sleep(60)