| От | Andrew Dunstan |
|---|---|
| Тема | Re: PL/Perl Does not Like vstrings |
| Дата | |
| Msg-id | 4F04F871.40502@dunslane.net обсуждение исходный текст |
| Ответ на | Re: PL/Perl Does not Like vstrings ("David E. Wheeler" <david@justatheory.com>) |
| Ответы |
Re: PL/Perl Does not Like vstrings
|
| Список | pgsql-hackers |
On 01/04/2012 06:15 PM, David E. Wheeler wrote: > [11:12pm]TonyC:theory: using sv_mortalcopy() instead of newSVsv() > should prevent the leak in that workaround, assuming there's no > FREETMPS between the call and use of the return value That's the solution to leakiness I had in mind. Tom said: > 2. A slightly cleaner fix for this should be to duplicate the SV and > then release the copy around the SvPVutf8 call, only if it's readonly. > "Fixing" it in do_util_elog is entirely the wrong thing. How do we tell if it's readonly? cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера