Was looking around the function x265_param2string when I noticed that one of the caller didn't free up the buffer after use. api.cpp:909 I didn't bother to write a hg patch, so I guess I'll leave the work to you. Thanks