From 31d45274b6b15f4d89575904a04429715c9b117e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 15 Aug 2015 09:41:43 +0100 Subject: [PATCH] Squash leak of path when path is directory. --- riscos/filetype.c | 1 + 1 file changed, 1 insertion(+) 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; }