Skip to content

BUG: Fix small valgrind-found issues (#18651)#18661

Merged
charris merged 1 commit intonumpy:maintenance/1.20.xfrom
charris:backport-18651
Mar 21, 2021
Merged

BUG: Fix small valgrind-found issues (#18651)#18661
charris merged 1 commit intonumpy:maintenance/1.20.xfrom
charris:backport-18651

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Mar 21, 2021

Backport of #18651.

  • BUG: Fix small valgrind-found issues

This should be backportable. There was at least one that I could
not reproduce when running the tests again. And the new random-shuffle
tests give false-positives (which is just slightly annoying, considering
that we are very close to almost only "longdouble" related
false-positives)

  • BUG: Add missing decref in user-dtype fallback paths

The missing decref here only leaks references and can never leak
actual memory fortunately.

  • MAINT,TST: Simplify the "refcount logic" in the dispatch tests again

Using SETREF can be nice, but was just overcomplicating thing here...

* BUG: Fix small valgrind-found issues

This should be backportable. There was at least one that I could
not reproduce when running the tests again. And the new random-shuffle
tests give false-positives (which is just slightly annoying, considering
that we are very close to almost only "longdouble" related
false-positives)

* BUG: Add missing decref in user-dtype fallback paths

The missing decref here only leaks references and can never leak
actual memory fortunately.

* MAINT,TST: Simplify the "refcount logic" in the dispatch tests again

Using SETREF can be nice, but was just overcomplicating thing here...
@charris charris added this to the 1.20.2 release milestone Mar 21, 2021
@charris charris merged commit c4fd82f into numpy:maintenance/1.20.x Mar 21, 2021
@charris charris deleted the backport-18651 branch May 3, 2021 17:30
@jakevdp jakevdp mentioned this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants