Fix assorted memory leaks.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bcc87b6b00de5b36984e0b43a78a8377a3577548
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-07-12T20:26:08Z
Releases: 9.6.0
Fix assorted memory leaks.

Per Coverity (not that any of these are so non-obvious that they should not
have been caught before commit).  The extent of leakage is probably minor
to unnoticeable, but a leak is a leak.  Back-patch as necessary.

Michael Paquier

Files