QSV: fix memory leak.