]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clean up Create/DropReplicationSlot query buffer
authorStephen Frost <sfrost@snowman.net>
Mon, 6 Oct 2014 15:18:13 +0000 (11:18 -0400)
committerStephen Frost <sfrost@snowman.net>
Mon, 6 Oct 2014 15:18:13 +0000 (11:18 -0400)
commit273b29dbe96b1584dd66615cf8dc83e7e6ae7386
tree56b9fbac03d1a2d87f02a945bac9046341841270
parentd9f38c7a555dd5a6b81100c6d1e4aa68342d8771
Clean up Create/DropReplicationSlot query buffer

CreateReplicationSlot() and DropReplicationSlot() were not cleaning up
the query buffer in some cases (mostly error conditions) which meant a
small leak.  Not generally an issue as the error case would result in an
immediate exit, but not difficult to fix either and reduces the number
of false positives from code analyzers.

In passing, also add appropriate PQclear() calls to RunIdentifySystem().

Pointed out by Coverity.
src/bin/pg_basebackup/streamutil.c