mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Fix memory leak in the new make_dir_path().
Thanks to Jason Andryuk for promptly pointing it out.
This commit is contained in:
@ -340,6 +340,8 @@ char *make_dir_path(const char *path, mode_t mode)
|
||||
sfree(prefix);
|
||||
return ret;
|
||||
}
|
||||
|
||||
sfree(prefix);
|
||||
}
|
||||
|
||||
if (!path[pos])
|
||||
|
Reference in New Issue
Block a user