proper free memory count
Merge pull request #109 from frankrousseau/master

proper free memory count