Fix leaking of threads in PEP code

Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak