python-prctl
python-prctl copied to clipboard
Fix set_proctitle for Py_DEBUG
My program crashed if Py_DEBUG is enabled.
This is because Py_XDECREF(bytesstr) in Py_DEBUG mode: dealloceted memory and fills it with 0xDD (DEADBYTE)
As a consequence str indicates garbage -> segfault
@seveas Can you watch this PR?