[mypyc] Fix function wrapper memory leak (#21654)
The `name` and `code` variables passed to the function wrapper init function are increfed inside it before storing them in the function wrapper object but they are not decrefed after the init function returns which creates a leak. Change the init function to instead steal `name` and `code` and document it.
P
Piotr Sawicki committed
5374fec1e0e676db587bebc36a1192b9819bc559
Parent: 2433566
Committed by GitHub <noreply@github.com>
on 6/29/2026, 3:31:02 PM