Interesting! Is this a suspicion, or do you have any references to the said memory leak?
The only thing I noticed in my case is that sometimes my phone doesn't pick up mobile data reception or LTE towers. I suspect that it has to do with my phone provider which is Google Fi, and it uses T-Mobile as an MVNO. I usually put the phone into airplane mode, wait a few seconds and then take it out of airplane mode. That shuts down mobile data, wifi, bluetooth and turns them back on. I assume it also unloads and reloads kernel modules and thus resets subsystems. I'd try that in your case as well, because it might be enough to release resources kept in memory by some part of the wifi subsystem.
I must add that my phone is a OnePlus 6, which is partially supported by Google Fi and is not able to use Sprint or US Cellular or other CDMA MVNOs of Google Fi. I got a Pixel 3 for my wife and it's much smoother sailing with that: sometimes I check and where I have LTE blackouts she usually has LTE probably through those CDMA providers' towers (I know LTE is not CDMA, but those towers are separate).
Bonus question: is your phone updated to latest? Who is your provider? Motorola in my mind is still less bloatware than Samsung or certain other phones...
What router do you use in your apartment? Free wifi is sweet, in your case I'd possibly try to set up a pair of wifi APs: one to pick up a steady signal (with some boosted antennas) from the free AP and other to provide the wifi for you. Maybe it's doable even with one AP if you can separate the radios and you use OpenWRT or some capable ROMs.
Cheers!