If you don't have room for more memory, or don't want to buy more, try this
In steam, right click on KSP, go to Proterties> Set Launch Options, in the typing bar, put this in:
-force-opengl
It reduces the memory leakage quite a bit, I would know : D
Hope my suggestion helps!
Cheers!
-TheKorbinger