d4d2594 Fix rpm_hdr_size file closing

1 file Authored by puiterwijk 2 years ago, Committed by tkopecek 2 years ago,
    Fix rpm_hdr_size file closing
    
    The current code will try to close a passed in file object, and will not
    try to close a file object it opened when a string is passed in.
    This results in either a leaked file object, or a file object that was
    passed in to be closed after the function is called.
    
    Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
    
        
file modified
+1 -1