Call jv_free on invalid result