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
ac25fab1
Kaydet (Commit)
ac25fab1
authored
Eyl 03, 2008
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some leaks - Neal Norwitz
üst
b339b2aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
_bsddb.c
Modules/_bsddb.c
+5
-3
bsddb.h
Modules/bsddb.h
+1
-1
No files found.
Modules/_bsddb.c
Dosyayı görüntüle @
ac25fab1
...
@@ -1106,7 +1106,7 @@ DBEnv_dealloc(DBEnvObject* self)
...
@@ -1106,7 +1106,7 @@ DBEnv_dealloc(DBEnvObject* self)
{
{
PyObject
*
dummy
;
PyObject
*
dummy
;
if
(
self
->
db_env
&&
!
self
->
closed
)
{
if
(
self
->
db_env
)
{
dummy
=
DBEnv_close_internal
(
self
,
0
);
dummy
=
DBEnv_close_internal
(
self
,
0
);
Py_XDECREF
(
dummy
);
Py_XDECREF
(
dummy
);
}
}
...
@@ -3981,13 +3981,15 @@ DBEnv_close_internal(DBEnvObject* self, int flags)
...
@@ -3981,13 +3981,15 @@ DBEnv_close_internal(DBEnvObject* self, int flags)
dummy
=
DB_close_internal
(
self
->
children_dbs
,
0
);
dummy
=
DB_close_internal
(
self
->
children_dbs
,
0
);
Py_XDECREF
(
dummy
);
Py_XDECREF
(
dummy
);
}
}
}
self
->
closed
=
1
;
if
(
self
->
db_env
)
{
MYDB_BEGIN_ALLOW_THREADS
;
MYDB_BEGIN_ALLOW_THREADS
;
err
=
self
->
db_env
->
close
(
self
->
db_env
,
flags
);
err
=
self
->
db_env
->
close
(
self
->
db_env
,
flags
);
MYDB_END_ALLOW_THREADS
;
MYDB_END_ALLOW_THREADS
;
/* after calling DBEnv->close, regardless of error, this DBEnv
/* after calling DBEnv->close, regardless of error, this DBEnv
* may not be accessed again (Berkeley DB docs). */
* may not be accessed again (Berkeley DB docs). */
self
->
closed
=
1
;
self
->
db_env
=
NULL
;
self
->
db_env
=
NULL
;
RETURN_IF_ERR
();
RETURN_IF_ERR
();
}
}
...
@@ -6148,7 +6150,7 @@ DBSequence_open(DBSequenceObject* self, PyObject* args, PyObject* kwargs)
...
@@ -6148,7 +6150,7 @@ DBSequence_open(DBSequenceObject* self, PyObject* args, PyObject* kwargs)
err
=
self
->
sequence
->
open
(
self
->
sequence
,
txn
,
&
key
,
flags
);
err
=
self
->
sequence
->
open
(
self
->
sequence
,
txn
,
&
key
,
flags
);
MYDB_END_ALLOW_THREADS
MYDB_END_ALLOW_THREADS
CLEAR
_DBT
(
key
);
FREE
_DBT
(
key
);
RETURN_IF_ERR
();
RETURN_IF_ERR
();
if
(
txn
)
{
if
(
txn
)
{
...
...
Modules/bsddb.h
Dosyayı görüntüle @
ac25fab1
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
#error "eek! DBVER can't handle minor versions > 9"
#error "eek! DBVER can't handle minor versions > 9"
#endif
#endif
#define PY_BSDDB_VERSION "4.7.3pre
3
"
#define PY_BSDDB_VERSION "4.7.3pre
4
"
/* Python object definitions */
/* Python object definitions */
...
...
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