Index: Modules/sha1module.c =================================================================== --- Modules/sha1module.c (revision 65688) +++ Modules/sha1module.c (working copy) @@ -488,6 +488,7 @@ static char *kwlist[] = {"string", NULL}; SHA1object *new; Py_buffer buf; + buf.buf = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist, &buf)) { @@ -505,7 +506,7 @@ } if (buf.buf) { sha1_process(&new->hash_state, buf.buf, buf.len); - PyBuffer_Release(&buf); + PyBuffer_Release(&buf); } return (PyObject *)new; Index: Modules/md5module.c =================================================================== --- Modules/md5module.c (revision 65688) +++ Modules/md5module.c (working copy) @@ -530,7 +530,7 @@ } if (buf.buf) { md5_process(&new->hash_state, buf.buf, buf.len); - PyBuffer_Release(&buf); + PyBuffer_Release(&buf); } return (PyObject *)new;