summaryrefslogtreecommitdiff
path: root/riscos/filetype.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/filetype.c')
-rw-r--r--riscos/filetype.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscos/filetype.c b/riscos/filetype.c
index a0de46ecf..535c931e8 100644
--- a/riscos/filetype.c
+++ b/riscos/filetype.c
@@ -97,6 +97,7 @@ const char *fetch_filetype(const char *unix_path)
if (objtype == osfile_IS_DIR) {
sprintf(type_buf, "application/x-netsurf-directory");
+ free(path);
return (const char *)type_buf;
}