From a9fb42e71bc55ad4b498beaf2202c09cc37c5056 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 2 Apr 2014 21:03:13 +0100 Subject: Fix leak of filename found by cppcheck. --- riscos/download.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'riscos/download.c') 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 */ -- cgit v1.2.3