* fhandler_socket.cc (fhandler_socket::set_sun_path): Don't free

memory here.  Allow NULL parameter.
This commit is contained in:
Corinna Vinschen
2002-07-04 17:18:14 +00:00
parent e48947085c
commit 5cff62d656
2 changed files with 6 additions and 3 deletions

View File

@ -1141,7 +1141,5 @@ fhandler_socket::set_close_on_exec (int val)
void
fhandler_socket::set_sun_path (const char *path)
{
if (sun_path)
cfree (sun_path);
sun_path = cstrdup (path);
sun_path = path ? cstrdup (path) : NULL;
}