RE: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows
Вложения
В списке pgsql-hackers по дате отправления:
| От | Tsunakawa, Takayuki |
|---|---|
| Тема | RE: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows |
| Дата | |
| Msg-id | 0A3221C70F24FB45833433255569204D1F8AE06B@G01JPEXMBYT05 обсуждение исходный текст |
| Ответ на | Re: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows (Thomas Munro <thomas.munro@enterprisedb.com>) |
| Ответы |
Re: [bug fix] ECPG: freeing memory for pgtypes crashes on Windows
|
| Список | pgsql-hackers |
From: Thomas Munro [mailto:thomas.munro@enterprisedb.com] > +#ifndef PGTYPES_FREE > +#define PGTYPES_FREE > + extern void PGTYPES_free(void *ptr); > +#endif > > It seems quite strange to repeat this in pgtypes_date.h, pgtypes_interval.h > and pgtypes_numeric.h. I guess you might not want to introduce a new common > header file so that his can be back-patched more easily? Not sure if there > is a project policy about that, but it seems unfortunate to introduce > maintenance burden by duplicating this. Your guess is correct. I wanted to avoid the duplication, but there was no good place to put this without requiring existingapplications to change their #include directives. > + <function>PGTYPES_free()/<function> instead of > <function>free()</function>. > > The "/" needs to move inside then closing tag. Thanks, fixed. Regards Takayuki Tsunakawa
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера