aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-09 12:46:34 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-09 12:46:34 -0400
commitfe0e0b4fc7f0cdc2333bda08b199422a1e77a551 (patch)
treede4c2e661629a89fecbde874728020c30e1d0955 /src/backend/utils/adt/regexp.c
parenta2418f9e238794fcaaf00bbd5b8f953ca2856aa0 (diff)
downloadpostgresql-fe0e0b4fc7f0cdc2333bda08b199422a1e77a551.tar.gz
postgresql-fe0e0b4fc7f0cdc2333bda08b199422a1e77a551.zip
Fix memory leak in pgbench
Commit 25ee70511ec2 introduced a memory leak in pgbench: some PGresult structs were not being freed during error bailout, because we're now doing more PQgetResult() calls than previously. Since there's more cleanup code outside the discard_response() routine than in it, refactor the cleanup code, removing the routine. This has little effect currently, since we abandon processing after hitting errors, but if we ever get further pgbench features (such as testing for serializable transactions), it'll matter. Per Coverity. Reviewed-by: Michaƫl Paquier
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions