mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 04:25:29 -04:00
fix memory leak in output_png()
This commit is contained in:
parent
39f0d38367
commit
4905acc20a
1 changed files with 1 additions and 1 deletions
|
|
@ -745,7 +745,7 @@ void output_png(Plot const& pl, const ImageData& data)
|
|||
// Clean up data structures
|
||||
std::fclose(fp);
|
||||
png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);
|
||||
png_destroy_write_struct(&png_ptr, nullptr);
|
||||
png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue