To solve the firefox memory leak problem,
first Thing :
Find the problematic plug-ins from your firefox. find out more about problematic plugins Problematic Extensios
Second Thing :
Second Thing
Open Firefox and go to the Address Bar. Type in about:config and then press Enter.
Right Click in the page and select New -> Boolean.
In the box that pops up enter config.trim_on_minimize and press Enter
Select “True” and then press Enter again.
Restart Firefox.
by doing that, when firefox will minimized it will reduces memory consumption more than 50%.
Third Thing:
set browser.cache.memory.capacity setting to 18432.
There you go.
It will consumes much less memory.