cfengine/core — pull request #1387 by ajlill (2014-02-03 21:29:27+00:00)
Title: Use a dynamically allocated buffer to remove size restriction on templat...

...e files
It looks like you can just calloc the buffer, and only one free needed at the end.