Convert to talloc

Some Apple APIs still return malloc'd memory, so we need to call
free() for them.
Remove reference to malloc in comments

Which makes it easier to find references to malloc in the code
Convert to talloc
Convert to talloc
Convert to talloc
Allocate enough memory for the data