fix C.free compiler error