rh = GNUNET_BIO_read_open (fn);
if (!rh)
{
+ GNUNET_free (buf);
GNUNET_free (fn);
return;
}
{
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "read", fn);
GNUNET_break (GNUNET_OK == GNUNET_BIO_read_close (rh, &emsg));
+ GNUNET_free (buf);
GNUNET_free_non_null (emsg);
GNUNET_free (fn);
return;
if (GNUNET_OK != GNUNET_BIO_write (wh, pos->msg, size))
{
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "write", fn);
- GNUNET_BIO_write_close (wh);
+ if (GNUNET_OK != GNUNET_BIO_write_close (wh))
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
wh = NULL;
}
else
}
if (NULL != wh)
{
- GNUNET_BIO_write_close (wh);
+ if (GNUNET_OK != GNUNET_BIO_write_close (wh))
+ GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "close", fn);
if (total == 0)
GNUNET_break (0 == UNLINK (fn));
else