| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| PyObject *meta_key, *meta_val; | ||
| Py_ssize_t pos = 0; | ||
| int meta_pos = 0; | ||
| std::vector<PyObject*> temp_strs; |
There was a problem hiding this comment.
don't know if it is worth it, but when doing push_back()s to a vector, one can save a fair amount of memory and allocation time by doing temp_strs.reserve(meta_size); before the loop for strings since we know the upper limit for this vector.
Sorry, something went wrong.
There was a problem hiding this comment.
I expect it won't be more than 10 or maybe 20, but I've added it since we do know the limit.
Sorry, something went wrong.
There was a problem hiding this comment.
seems to make sense to me.
Sorry, something went wrong.
If `info_ptr` isn't created, we should still destroy `png_ptr`.
| Back | FazBrowse Home | New Git URL |
PR Summary
This is a cherry-pick of the leak fix in #17458, and another leak fix in the png code (which doesn't exist on master.)
PR Checklist