That's a very good point! Looks like nobody has defined a gcode to return the free memory.