* fhandler_tty.cc (fhandler_tty_slave::dup): Free path_conv strings

to avoid memory leak.  Add comment.
	(fhandler_pty_master::dup): Ditto.
	* path.h (path_conv::free_strings): New method.
This commit is contained in:
Corinna Vinschen
2010-11-29 20:51:38 +00:00
parent 371a9496e8
commit 910e31f015
3 changed files with 26 additions and 0 deletions

View File

@ -293,6 +293,11 @@ class path_conv
wide_path = NULL;
return *this;
}
void free_strings ()
{
cfree (modifiable_path ());
cfree ((char *) normalized_path);
}
DWORD get_devn () const {return dev.devn;}
short get_unitn () const {return dev.minor;}
DWORD file_attributes () const {return fileattr;}