Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2dabaf63
Kaydet (Commit)
2dabaf63
authored
Eyl 07, 2012
tarafından
Ross Lagerwall
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15876: Fix a refleak in the curses module
The refleak occurred when assigning to window.encoding.
üst
4e251403
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
NEWS
Misc/NEWS
+2
-0
_cursesmodule.c
Modules/_cursesmodule.c
+1
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
2dabaf63
...
@@ -26,6 +26,8 @@ Core and Builtins
...
@@ -26,6 +26,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #15876: Fix a refleak in the curses module: window.encoding.
- Issue #15841: The readable(), writable() and seekable() methods of BytesIO
- Issue #15841: The readable(), writable() and seekable() methods of BytesIO
and StringIO objects now raise ValueError when the object has been closed.
and StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
Patch by Alessandro Moura.
...
...
Modules/_cursesmodule.c
Dosyayı görüntüle @
2dabaf63
...
@@ -1938,6 +1938,7 @@ PyCursesWindow_set_encoding(PyCursesWindowObject *self, PyObject *value)
...
@@ -1938,6 +1938,7 @@ PyCursesWindow_set_encoding(PyCursesWindowObject *self, PyObject *value)
if
(
ascii
==
NULL
)
if
(
ascii
==
NULL
)
return
-
1
;
return
-
1
;
encoding
=
strdup
(
PyBytes_AS_STRING
(
ascii
));
encoding
=
strdup
(
PyBytes_AS_STRING
(
ascii
));
Py_DECREF
(
ascii
);
if
(
encoding
==
NULL
)
{
if
(
encoding
==
NULL
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment