hevc: fix memory leak