Hacker News new | ask | show | jobs
by lossolo 2800 days ago
Yeah, seems like memory leak to me too. streamP is leaked if open fails.

And this in modern C++ in year 2018:

if (result != Result::OK) { goto error2; }