fix C.free bug