Monday, November 5, 2007

MaraDNS snapshot update

I just uploaded a snapshot with three minor errors in Deadwood-1 pointed out by Jean-Jacques Sarton corrected:
  • I did not close the socket for binding to a local IP if bind() or accept() failed
  • I did not close the dwood1rc file handle after parsing the dwood1rc file
  • I did not close the random seed file after getting entropy from this file
It can be downloaded here

Note that none of these problems caused a leak; in all three cases, it was simply a case of a resource (a file or socket) being opened once and then never closed.

I will update the coding style to make sure these kinds of problems don't pop up again.

- Sam