Memory Leak

I have made a 3d endless runner game when I run it inside unity editor in maximize mode, the amount of memory it takes increases by time passage, can anyone help me why this happens ? Will using terrain for platform generation in endless runner game is good choice or not ?

You should post more information, because now it is like working on a nuclear bomb without any information.

The first thing that goes to mind is that you simply do not destroy the objects which are far away. The objects you have created will not disappear from the memory unless you say so. If that is not the case, then try to move the objects, instead of destroying and recreating them (actually it is a good optimizationethod, especially on mobile). Other than that, there is not that much information to get the idea what is wrong.

I have used object pooling technique for platform generation , When I use terrain as platform the problem that I have mentioned happen but when I use cube or some other game object as platform , there is no problem , I dont know why?
@TheDiamondPlay