Neal Norwitz <nnorwitz at gmail.com> added the comment: Another PyBuffer_Release(&pin); looks necessary at @@ -805,6 +807,7 @@. _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue3651> _______________________________________