From: Linus Torvalds <torva...@linux-foundation.org> Date: Thu, 12 Sep 2019 11:31:06 +0100
> It depends on what you want to do, of course. Do you want to make sure > each user is being very careful? Or do you want to make the interfaces > easy to use without _having_ to be careful? There are arguments both > ways, but we've tended to move more towards a "easy to use" model than > the "be careful" one. Yes, I think allowing NULL or error pointers on free/destroy makes sense.