pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/43441c77b5fd9617d7baff1cf3bbc072fef6035b

faa60c69660fa.css" /> merge 3.5 · python/cpython@43441c7 · GitHub
Skip to content

Commit 43441c7

Browse files
committed
merge 3.5
2 parents 267941c + 3776836 commit 43441c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/mmapmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ mmap_write_method(mmap_object *self,
383383
if (!PyArg_ParseTuple(args, "y*:write", &data))
384384
return(NULL);
385385

386-
if (!is_writable(self))
386+
if (!is_writable(self)) {
387+
PyBuffer_Release(&data);
387388
return NULL;
389+
}
388390

389391
if (self->pos > self->size || self->size - self->pos < data.len) {
390392
PyBuffer_Release(&data);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy