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
35c38eae
Kaydet (Commit)
35c38eae
authored
Tem 15, 2003
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
heck environment closed status before closing a cursors. Fixes #763928.
üst
f393fc6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
_bsddb.c
Modules/_bsddb.c
+8
-1
No files found.
Modules/_bsddb.c
Dosyayı görüntüle @
35c38eae
...
@@ -774,7 +774,14 @@ DBCursor_dealloc(DBCursorObject* self)
...
@@ -774,7 +774,14 @@ DBCursor_dealloc(DBCursorObject* self)
int
err
;
int
err
;
if
(
self
->
dbc
!=
NULL
)
{
if
(
self
->
dbc
!=
NULL
)
{
MYDB_BEGIN_ALLOW_THREADS
;
MYDB_BEGIN_ALLOW_THREADS
;
if
(
self
->
mydb
->
db
!=
NULL
)
/* If the underlying database has been closed, we don't
need to do anything. If the environment has been closed
we need to leak, as BerkeleyDB will crash trying to access
the environment. There was an exception when the
user closed the environment even though there still was
a database open. */
if
(
self
->
mydb
->
db
&&
self
->
mydb
->
myenvobj
&&
!
self
->
mydb
->
myenvobj
->
closed
)
err
=
self
->
dbc
->
c_close
(
self
->
dbc
);
err
=
self
->
dbc
->
c_close
(
self
->
dbc
);
self
->
dbc
=
NULL
;
self
->
dbc
=
NULL
;
MYDB_END_ALLOW_THREADS
;
MYDB_END_ALLOW_THREADS
;
...
...
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