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
e363b143
Kaydet (Commit)
e363b143
authored
Eki 17, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
üst
b6edf193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
_ctypes.c
Modules/_ctypes/_ctypes.c
+3
-3
No files found.
Modules/_ctypes/_ctypes.c
Dosyayı görüntüle @
e363b143
...
...
@@ -1889,17 +1889,16 @@ PyCSimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
fmt
=
_ctypes_get_fielddesc
(
PyString_AS_STRING
(
proto
));
if
(
fmt
==
NULL
)
{
Py_DECREF
(
result
);
PyErr_Format
(
PyExc_ValueError
,
"_type_ '%s' not supported"
,
PyString_AS_STRING
(
proto
));
return
NULL
;
goto
error
;
}
stgdict
=
(
StgDictObject
*
)
PyObject_CallObject
(
(
PyObject
*
)
&
PyCStgDict_Type
,
NULL
);
if
(
!
stgdict
)
return
NULL
;
goto
error
;
stgdict
->
ffi_type_pointer
=
*
fmt
->
pffi_type
;
stgdict
->
align
=
fmt
->
pffi_type
->
alignment
;
...
...
@@ -1914,6 +1913,7 @@ PyCSimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
#endif
if
(
stgdict
->
format
==
NULL
)
{
Py_DECREF
(
result
);
Py_DECREF
(
proto
);
Py_DECREF
((
PyObject
*
)
stgdict
);
return
NULL
;
}
...
...
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