Le 2015-09-13 04:30, Sean McGovern a écrit : >>> + } >>> + >>> + return buf; >> >> Memory leak. > > Doesnt the calling function need to take ownership of whatever this > returns anyhow? No. This would be obvious if you looked at any call site. -- Rémi Denis-Courmont http://www.remlab.net/