зеркало из https://github.com/github/ruby.git
* enc/shift_jis.c (property_name_to_ctype): fix memory leak.
* enc/euc_jp.c (property_name_to_ctype): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
36e908901b
Коммит
07b1f01b33
|
@ -1,3 +1,9 @@
|
|||
Wed Nov 17 09:49:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* enc/shift_jis.c (property_name_to_ctype): fix memory leak.
|
||||
|
||||
* enc/euc_jp.c (property_name_to_ctype): ditto.
|
||||
|
||||
Tue Nov 17 08:54:04 2010 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/csv.rb: Upgrading output encoding as needed. [ruby-core:33135]
|
||||
|
|
|
@ -290,7 +290,7 @@ property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
|
|||
|
||||
PROPERTY_LIST_INIT_CHECK;
|
||||
|
||||
s = e = ALLOC_N(UChar, end-p+1);
|
||||
s = e = ALLOCA_N(UChar, end-p+1);
|
||||
for (; p < end; p++) {
|
||||
*e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p);
|
||||
}
|
||||
|
|
|
@ -299,7 +299,7 @@ property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
|
|||
|
||||
PROPERTY_LIST_INIT_CHECK;
|
||||
|
||||
s = e = ALLOC_N(UChar, end-p+1);
|
||||
s = e = ALLOCA_N(UChar, end-p+1);
|
||||
for (; p < end; p++) {
|
||||
*e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче