6743809
tests: Resolve Coverity RESOURCE_LEAK In the error path need to unref the 'caps' as well Signed-off-by: John Ferlan <jferlan@redhat.com>