mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Squash leak of path when path is directory.
This commit is contained in:
parent
cad9f1f8c4
commit
31d45274b6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user