-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
I found a strange behavior of Poco::Dynamic::Var that seams to cause a memory leak.
If you do something like:
Poco::Dynamic::Var var1;
var1 = std::string("test1");
Poco::Dynamic::Var var2;
var2 = std::string("test2");
var1.swap(var2);
the code works well without leak.
But if I do this:
Poco::Dynamic::Var var1;
var1 = std::string("test1");
var1 = std::string("test2");
I got a memory leak. I've compiled without the POCO_NO_SOO define so my config.h is
//define POCO_NO_SOO
Do you have the same behavior? or I'm missing something?
Reactions are currently unavailable