[PATCH] qcap: release filter only if allocated