• Moshe Kaplan's avatar
    config.c: Avoid leaking file handle if file is 0 bytes (#12828) · fa751f9b
    Moshe Kaplan authored
    If fopen() is successful and redis_fstat determines that the file is 0
    bytes, the file handle stored in fp will leak. This change closes the
    filehandle stored in fp if the file is 0 bytes.
    
    Second attempt at fixing Coverity 390029
    
    This is a follow-up to #12796
    fa751f9b
config.c 144 KB