mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01: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:
parent
9952b2d5bd
commit
c5ce372a36
@ -340,6 +340,8 @@ char *make_dir_path(const char *path, mode_t mode)
|
||||
sfree(prefix);
|
||||
return ret;
|
||||
}
|
||||
|
||||
sfree(prefix);
|
||||
}
|
||||
|
||||
if (!path[pos])
|
||||
|
Loading…
Reference in New Issue
Block a user