Possible memory leak when using NODISPLAY

I tested this again on 9.1.3 and the issue seems to have been solved. The memory does not grow uncontrollably anymore