diff options
| author | Felipe Pena <felipe@php.net> | 2008-07-30 19:34:23 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-07-30 19:34:23 +0000 |
| commit | b2e0077261648e90a15d0a38446dc97a20308c1f (patch) | |
| tree | 693f88a773865e9738d42c5111ef3a3921e7b6c2 /ext | |
| parent | b5e2564abfb6f3c2ff45b349c082189321095207 (diff) | |
| download | php-git-b2e0077261648e90a15d0a38446dc97a20308c1f.tar.gz | |
- MFH: Fixed memory leak.
# Test: locale_filter_matches(str_repeat('a', 520), str_repeat('a', 520), 1);
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/intl/locale/locale_methods.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/locale/locale_methods.c b/ext/intl/locale/locale_methods.c index 1584f54c1d..82be41b061 100755 --- a/ext/intl/locale/locale_methods.c +++ b/ext/intl/locale/locale_methods.c @@ -1297,7 +1297,7 @@ PHP_FUNCTION(locale_filter_matches) } //Convert to lower case for case-insensitive comparison - cur_lang_tag = ecalloc( 1, strlen(lang_tag ) + 1); + cur_lang_tag = ecalloc( 1, strlen(can_lang_tag) + 1); //Convert to lower case for case-insensitive comparison result = strToMatch( can_lang_tag , cur_lang_tag); @@ -1307,7 +1307,7 @@ PHP_FUNCTION(locale_filter_matches) RETURN_FALSE; } - cur_loc_range = ecalloc( 1, strlen(loc_range ) + 1); + cur_loc_range = ecalloc( 1, strlen(can_loc_range) + 1); result = strToMatch( can_loc_range , cur_loc_range ); if( result == 0) { efree( cur_lang_tag ); |
