Update vfs_implementation.c

This commit is contained in:
LibretroAdmin 2023-09-30 10:41:35 -07:00 committed by GitHub
parent fdd5e7cea0
commit 0bbfba8137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -924,7 +924,10 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
path_buf[len - 1] = '\0';
if (stat(path_buf, &stat_buf) < 0)
{
free(path_buf);
return 0;
}
free(path_buf);