* fhandler_virtual.cc (fhandler_virtual::close): Don't free filebuf if it's
NULL. * pinfo.cc (_pinfo::commune_send): Fix test for incorrect number of bytes read from pipe.
This commit is contained in:
@@ -169,8 +169,11 @@ fhandler_virtual::close ()
|
||||
{
|
||||
if (!hExeced)
|
||||
{
|
||||
cfree (filebuf);
|
||||
filebuf = NULL;
|
||||
if (filebuf)
|
||||
{
|
||||
cfree (filebuf);
|
||||
filebuf = NULL;
|
||||
}
|
||||
bufalloc = (size_t) -1;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user