free(NULL) and g_free(NULL) are fine

Created using following semantic patch and Coccinelle:

@ free @
expression x;
@@
-if (x) { free(x); }
+free(x);

@ g_free @
expression x;
@@
-if (x) { g_free(x); }
+g_free(x);