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
c0d5faa9
Kaydet (Commit)
c0d5faa9
authored
Eki 21, 2005
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Free coding spec (cs) if there was an error to prevent mem leak. Maybe backport candidate
üst
1e8659b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tokenizer.c
Parser/tokenizer.c
+3
-0
No files found.
Parser/tokenizer.c
Dosyayı görüntüle @
c0d5faa9
...
@@ -277,11 +277,14 @@ check_coding_spec(const char* line, int size, struct tok_state *tok,
...
@@ -277,11 +277,14 @@ check_coding_spec(const char* line, int size, struct tok_state *tok,
tok
->
encoding
=
cs
;
tok
->
encoding
=
cs
;
tok
->
decoding_state
=
-
1
;
tok
->
decoding_state
=
-
1
;
}
}
else
PyMem_DEL
(
cs
);
#else
#else
/* Without Unicode support, we cannot
/* Without Unicode support, we cannot
process the coding spec. Since there
process the coding spec. Since there
won't be any Unicode literals, that
won't be any Unicode literals, that
won't matter. */
won't matter. */
PyMem_DEL
(
cs
);
#endif
#endif
}
}
}
else
{
/* then, compare cs with BOM */
}
else
{
/* then, compare cs with BOM */
...
...
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