certik / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

unbounded memory usage when repeatedly calling Node::operator= #232

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

#include "yaml-cpp/yaml.h"

int main()
{
    YAML::Node root;

    for ( ;; )
    {
        YAML::Node node;
        root = node;
    }

    return 0;
}

What is the expected output? What do you see instead?

Expected: the memory usage of this program stays consistent.
Actual: the memory usage of this program increases 

What version of the product are you using? On what operating system?
yaml-cpp-0.5.1
Win 8.1

Please provide any additional information below.

Original issue reported on code.google.com by mark.gu...@gmail.com on 18 Dec 2013 at 8:28

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 18 Dec 2013 at 9:19