I've managed to reproduce a memory leak on TF2 Linux (SP version 327) with:
from listeners import OnTick
from messages import KeyHintText
from filters.players import PlayerIter
text = 'a' * 240
@OnTick
def on_tick():
for player in PlayerIter():
for x in range(40):
KeyHintText(text).send(player.index)
The flood of data causes the game client to freeze, but running the plugin causes a steady increase of ~1MB memory usage every few seconds.
I've tested with SayText2 and HintText messages with the same result.