filterchain: fix memory leak.