Since those are chunks of code based on our codebase, it's easiest to use the same license.
This replaces this: free(p); p = NULL; by this: p = mfree(p); Change generated using coccinelle. Semantic patch is added to the sources.