Use-after-free in printHist
printHist
has the following code:
auto histname = config.get<string>("hist").c_str();
clang warns that the std::string
returned by config
gets deleted at the end of the statement, and thus histname
is immediately a dangling pointer.