Releasing mote memory fix.