summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-08-15 09:41:43 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2015-08-15 09:41:43 +0100
commit31d45274b6b15f4d89575904a04429715c9b117e (patch)
treeded19c50d2fe6b75faabaaa95ba839fec125c278 /riscos
parentcad9f1f8c4ab98e46c63278f8950dd3cf4a4d2d4 (diff)
downloadnetsurf-31d45274b6b15f4d89575904a04429715c9b117e.tar.gz
netsurf-31d45274b6b15f4d89575904a04429715c9b117e.tar.bz2
Squash leak of path when path is directory.
Diffstat (limited to 'riscos')
-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;
}