Files
Peter Liedholm 14c43eb3da telldus-core: fix memory leak in wideToString
Patch 200-no-iconv.patch replaced iconv with std::wstring_convert, but
it left two buffer allocations in wideToString() and removed their
delete[]. Each message between a client and telldusd leaked both
buffers, in the client library and in telldusd.

Measured on a router with one client request per second and normal RF
traffic: telldusd and the client each grew about 1.8 MB per hour until
the OOM killer stopped telldusd.

Remove the unused buffers.

Signed-off-by: Peter Liedholm <peterfromswe884@gmail.com>
2026-11-22 10:34:49 +02:00
..
2019-03-01 21:19:45 +01:00