Squash leak of path when path is directory.

This commit is contained in:
Michael Drake 2015-08-15 09:41:43 +01:00
parent cad9f1f8c4
commit 31d45274b6

View File

@ -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;
}