Add alloc_size and malloc attributes to a few functions.

Thanks to Cristian Rodríguez for the original patch.
3 files changed