Fixed a memory leak in the generated headers, namely the buffer for the parameters and return value was allocated but never freed.