summaryrefslogtreecommitdiff
path: root/riscos/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/download.c')
-rw-r--r--riscos/download.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscos/download.c b/riscos/download.c
index 804a66459..6cba17ef0 100644
--- a/riscos/download.c
+++ b/riscos/download.c
@@ -379,6 +379,8 @@ static struct gui_download_window *gui_download_window_create(download_context *
snprintf(dw->path, RO_DOWNLOAD_MAX_PATH_LEN, "%s",
filename);
+ free(filename);
+
err = utf8_to_local_encoding(dw->path, 0, &local_path);
if (err != NSERROR_OK) {
/* badenc should never happen */