pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: libpq: Remove redundant null pointer checks before free()
Date: Fri, 17 Jun 2022 21:03:23 +0200
Message-ID: <5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com> (raw)
In-Reply-To: <Yqv0E7iIUfv4cpp2@paquier.xyz>
References: <dac5d2d0-98f5-94d9-8e69-46da2413593d@enterprisedb.com>
	<Yqv0E7iIUfv4cpp2@paquier.xyz>

On 17.06.22 05:25, Michael Paquier wrote:
> On Thu, Jun 16, 2022 at 10:07:33PM +0200, Peter Eisentraut wrote:
>> 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.
> Seems fine.  Would some of the buildfarm dinosaurs hiccup on that?
> gaur is one that comes into mind.

I'm pretty sure PostgreSQL code already depends on this behavior anyway. 
  The code just isn't consistent about it.





view thread (10+ messages)  latest in thread

Message-ID: <5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com>
Permalink:  ../5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com/
Also on:    postgresql.org/message-id/5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, michael@paquier.xyz
  Subject: Re: libpq: Remove redundant null pointer checks before free()
  In-Reply-To: <5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com>
  References: <dac5d2d0-98f5-94d9-8e69-46da2413593d@enterprisedb.com> <Yqv0E7iIUfv4cpp2@paquier.xyz> <5333caf7-7667-bc58-0fd0-2e82eaf01967@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox