30b42c Downstream: fix covscan issue: close(fd) called twice

1 file Authored by rpm-build 3 years ago, Committed by Packit Service 3 years ago,
    Downstream: fix covscan issue: close(fd) called twice
    
    Seems it's already fixed upstream, but by several commits, that
    change more things.
    
    This simple patch, just prevents the case of calling close(fd) twice
    
    Warning is:
    Error: USE_AFTER_FREE (CWE-416): [#def2]
    libusb-1.0.23/libusb/os/linux_usbfs.c:1043: closed_arg: "close(int)" closes "fd".
    libusb-1.0.23/libusb/os/linux_usbfs.c:1054: double_close: Calling "close(int)"
    closes handle "fd" which has already been closed.
    
    patch_name: 1000-Downstream-fix-covscan-issue-close-fd-called-twice.patch
    present_in_specfile: true
    location_in_specfile: 11
    squash_commits: true
    
        
file modified
+4 -2