You are not saying which tool tells you that you have a memory leak, but I assume it is valgrind, since you are on Ubuntu.
If leaks occur even if you do not call any POCO methods, then it is likely that these are one-time distributions that occur during the static initialization of the POCO library, which for some reason do not break later.
Although this is not a particularly remarkable behavior on the part of the library, it is not fatal. The things that concern you are those that will occur repeatedly and will gradually consume memory.
I would recommend using valgrind --gen-suppressions=all to create suppressions for one-time leaks at the moment (it is especially good that you do not call any POCO methods). Then look at the POCO library and see if you can understand why these distributions do not unwind at .fini time. If you can, great, let the POCO people have your corrections, and then you can remove your suppression notes. If not, leave them so that these βfalse positivesβ do not interfere with finding really harmful memory leaks in your code.
source share