Unfortunatly, there is no readily available way to add memory to an iPhone. However, there are applications in the app store that are designed to free the available memory.
I didn't think you could add memory to an iphone. I goggled it and got conflicting results. From possible but difficult to impossible. I lean toward impossible.