Re: Clang 3.3 Analyzer Results - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Clang 3.3 Analyzer Results
Date
Msg-id 1384356951.87538.YahooMailNeo@web162906.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: Clang 3.3 Analyzer Results  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> No, this isn't about test code vs production, it's about not bothering
> to free memory explicitly when a program is about to terminate.  Alvaro
> is suggesting that the proposed addition to pg_regress.c is just a waste
> of cycles.  IMO it's not that big a deal either way in this case, since
> it's just one line of code that isn't going to take too long.

Right.  IMV, it's easier in this case to silence the warnings for
all future static code analysis runs, by this tool or any other, by
fixing it rather than having this particular triviality resurface
to annoy anyone in the future.

Fix pushed to the master branch.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: additional json functionality
Next
From: Robert Haas
Date:
Subject: Re: alter_table regression test problem