]> granicus.if.org Git - php/commitdiff
fix invalid free in Unicode filter
authorAntony Dovgal <tony2001@php.net>
Tue, 20 May 2008 07:48:04 +0000 (07:48 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 20 May 2008 07:48:04 +0000 (07:48 +0000)
main/streams/unicode_filter.c

index 0d27d343399d53a25653572e896db463c754551c..c9024ea6032c7881f537467a87f7a68e0651cdf8 100644 (file)
@@ -153,7 +153,7 @@ static php_stream_filter_status_t php_unicode_from_string_filter(
                        ucnv_toUnicode(data->conv, &destp, (UChar*)((char*)destbuf + destlen), (const char**)&src, src + remaining, NULL, FALSE, &errCode);
 
                        if (errCode != U_ZERO_ERROR) {
-                               pefree(destp, data->is_persistent);
+                               pefree(destbuf, data->is_persistent);
                                break;
                        }