Unverified Commit 4c15371e authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

address klocwork issue (#1749)

parent ed0855fe
...@@ -157,7 +157,10 @@ void pass::VisualizeTree::render() const ...@@ -157,7 +157,10 @@ void pass::VisualizeTree::render() const
ss << "dot -T" << get_file_ext() << " " << tmp_file << " -o " << m_name; ss << "dot -T" << get_file_ext() << " " << tmp_file << " -o " << m_name;
auto cmd = ss.str(); auto cmd = ss.str();
auto stream = popen(cmd.c_str(), "r"); auto stream = popen(cmd.c_str(), "r");
pclose(stream); if (stream)
{
pclose(stream);
}
remove(tmp_file.c_str()); remove(tmp_file.c_str());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment