Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

soyszala
Copy link
Contributor

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
    https://github.com/opencv/opencv/issues/23633
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Copy link
Contributor

@VadimLevin VadimLevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the issue was caused by PyObject_SetAttrString -> PyObject_GenericSetAttr that under the hood calls Py_INCREF on provided value

@dkurt dkurt linked an issue May 18, 2023 that may be closed by this pull request
4 tasks
@asmorkalov asmorkalov merged commit 435ccfd into opencv:4.x May 18, 2023
@opencv-alalek opencv-alalek added the backport is needed Label for maintainers. Authors of PR can ignore this label May 18, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport is needed Label for maintainers. Authors of PR can ignore this bug category: python bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencv-python Memory leak caused by failed cvtColor() calls

4 participants