Re: [Patch] timezone/zic.c: Fix file handle leak in dolink()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Patch] timezone/zic.c: Fix file handle leak in dolink()
Дата
Msg-id 2510832.1766941165@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [Patch] timezone/zic.c: Fix file handle leak in dolink()  ("zengman" <zengman@halodbtech.com>)
Ответы Re: [Patch] timezone/zic.c: Fix file handle leak in dolink()
Список pgsql-hackers
"=?ISO-8859-1?B?emVuZ21hbg==?=" <zengman@halodbtech.com> writes:
> Furthermore, I noticed that some of the test code in `contrib/pg_trgm/trgm_regexp.c` does not check the return value
ofthe `fopen()` call.  
> I'm not sure if it's necessary to make the modification.

Probably not worth the trouble.  This is barely even debug-grade
code, seeing that there's no provision to change the target file
name.  It's clearly not meant for use in unfriendly environments.

            regards, tom lane



В списке pgsql-hackers по дате отправления: