Created attachment 110563 [details] Patch as a git commit Dear all, Please find attached a patch that fixes a leak in core. Just for the record, regarding the free() call, free() is no op in case it receives a null pointer, so it's fine to call it whatever happens. With my best regards, P. Schweitzer
The code is not as easy to grok as it would be good, but there isn't a leakhere actually. Note that r can only be negative if "printed" fails to be allocated, but in that case we don't need to free it... Thanks, anyway, for the report!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.