6743809 tests: Resolve Coverity RESOURCE_LEAK

Authored and Committed by John Ferlan 8 years ago
    tests: Resolve Coverity RESOURCE_LEAK
    
    In the error path need to unref the 'caps' as well
    
    Signed-off-by: John Ferlan <jferlan@redhat.com>
    
        
file modified
+1 -0