Skip to content

Poco::Dynamic::Var memory leak #709

@micheleselea

Description

@micheleselea

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions