1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-02-04 06:02:24 +00:00

Fix memory leak in the new make_dir_path().

Thanks to Jason Andryuk for promptly pointing it out.
This commit is contained in:
Simon Tatham 2016-08-10 19:34:46 +01:00
parent 9952b2d5bd
commit c5ce372a36

View File

@ -340,6 +340,8 @@ char *make_dir_path(const char *path, mode_t mode)
sfree(prefix); sfree(prefix);
return ret; return ret;
} }
sfree(prefix);
} }
if (!path[pos]) if (!path[pos])