Merge "libmemtrack: check return value for getMemory()"