fate/api-codec-param: fix codec context leak