Add missing free in release method

Some free where missing