Run-time memory-clearing application for iphone?

I have iPhone 3GS 6.0.1, and it kept slowing and freezing even after reset or restart. It wasn't like this before. They said i should try installing run-time memory-clearing application, but i don't know any app. Anyone knows any run-time memory-clearing app that's free?

Use desktop software. It works good for me.