comments function with 'mem = 0', which is NOT used at all
Merge pull request #1 from efernandez/hydro-devel

Use free(mem) to avoid memLeak cppcheck error