Commit 5b875238 authored by jan.koester's avatar jan.koester
Browse files

fixed memleak

parent 97d91366
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -150,4 +150,14 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){

    yaml_parser_delete(&parse);
    fclose(fh);

    while(ystack){
        YamlStack *prev=ystack->prevel;
        ystack->prevel=nullptr;
        delete ystack;
        ystack=prev;
    }

    delete ystack;

}