libpq: Remove redundant null pointer checks before free()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема libpq: Remove redundant null pointer checks before free()
Дата
Msg-id dac5d2d0-98f5-94d9-8e69-46da2413593d@enterprisedb.com
обсуждение исходный текст
Ответы Re: libpq: Remove redundant null pointer checks before free()  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
libpq contains a lot of

     if (foo)
         free(foo);

calls, where the "if" part is unnecessary.  This is of course pretty 
harmless, but some functions like scram_free() and freePGconn() have 
become so bulky that it becomes annoying.  So while I was doing some 
work in that area I undertook to simplify this.
Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: SGML doc file references
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Typo in ro.po file?