majintao0131 / 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

Closed GoogleCodeExporter closed 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

GoogleCodeExporter commented 9 years ago
This issue has moved to github: https://github.com/jbeder/yaml-cpp/issues/232

Original comment by jbe...@gmail.com on 1 Apr 2015 at 3:25