Since those are chunks of code based on our codebase, it's easiest to use the same license.
And set_free() too. Another Coccinelle patch.