ok - I'm not seeing a memory leak on f37 on a pi4 in a couple hours of uptime. I installed 4.9.1 in setup.py mode using the Simulator driver and am wifi only for networking. I might add that I followed the instructions for using a python venv that Tom posted in the wiki so my python stuff is installed into the venv via pip. Once I set setenforce=0 to disable selinux (ugh) it starts fine via systemd.
(wild thought - I wonder if the rpms you installed are where the leak is. Note that I used 'pip' to compile+install all the modules)
For a quick cli check, I'm running this script to output some data...edit the path to your index.html to match of course...
while true; do echo ''; free -m ; ps axu|grep weewx; grep minutes /home/weewx/public_html/index.html | grep -v grep; echo ' '; sleep 360; done
Hit ^C to stop it. Example output looks like:
total used free shared buff/cache available
Mem: 3808 775 901 11 2131 2833
Swap: 3807 0 3807
fedora 12153 1.0 1.2 351688 48124 ? Ss 12:12 1:15 /home/weewx/weewx_venv/bin/python3 /home/weewx/bin/weewxd /home/weewx/weewx.conf
<td class="data">0 days, 2 hours, 25 minutes</td>
<td class="data">0 days, 1 hour, 52 minutes</td>
So my VSS is 351688 and RSS is 48124 for my weewx process. It's rock solid here in the Simulator FWIW once it reached that size after a few minutes.