diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 0e256f20a5..162704fde9 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -614,6 +614,8 @@ void fill_pathname_parent_dir_name(char *out_dir, in_dir = find_last_slash(temp) + 1; strlcpy(out_dir, in_dir, size); + + free(temp); } /**