Why g_autofree doesn't simply check if the pointer is NULL before freeing it?

前端 未结 0 534
甜味超标
甜味超标 2020-12-31 08:12

Below is the declaration code of the g_autofree macro. As it can be seen, it blindly calls g_free on the pointer… WHY?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题