• Stephen Frost's avatar
    Clean up Create/DropReplicationSlot query buffer · 273b29db
    Stephen Frost authored
    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.
    273b29db
streamutil.c 11.4 KB