Changeset 579 for trunk/src/sh_unix.c


Ignore:
Timestamp:
May 14, 2023, 10:08:17 PM (16 months ago)
Author:
katerina
Message:

Fix for ticket #467 (memleak).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r570 r579  
    36033603              }
    36043604            }
    3605           SH_FREE(rotated_file);
    3606         }
     3605        }
     3606      if (rotated_file) {
     3607        SH_FREE(rotated_file);
     3608      }
    36073609    }
    36083610  return retval;
     
    48724874  if (0 == retry_lstat(FIL__, __LINE__, path, &buf))
    48734875    SL_RETURN( S_TRUE,   _("sh_unix_file_exists"));
    4874   else
    4875     SL_RETURN( S_FALSE,  _("sh_unix_file_exists"));
     4876
     4877  SL_RETURN( S_FALSE,  _("sh_unix_file_exists"));
    48764878}
    48774879
     
    48884890  if (retry_fstat(FIL__, __LINE__, fd, &buf) == -1)
    48894891    SL_RETURN( (-1), _("sh_unix_device_readable"));
    4890   else if ( S_ISCHR(buf.st_mode) &&  0 != (S_IROTH & buf.st_mode) )
     4892  if ( S_ISCHR(buf.st_mode) &&  0 != (S_IROTH & buf.st_mode) )
    48914893    SL_RETURN( (0), _("sh_unix_device_readable"));
    4892   else
    4893     SL_RETURN( (-1), _("sh_unix_device_readable"));
     4894
     4895  SL_RETURN( (-1), _("sh_unix_device_readable"));
    48944896}
    48954897
Note: See TracChangeset for help on using the changeset viewer.