aboutsummaryrefslogtreecommitdiff
path: root/src/tools/git-external-diff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-10-07 18:04:25 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-10-07 18:04:25 -0400
commitb11f0d36b224a9673863b4e592f40f179dba3016 (patch)
tree58f16dfafcb41cba8953deffe5f01c815dc18149 /src/tools/git-external-diff
parentef73a8162a5fe9c4b2f895bf9fb660f1aabc796c (diff)
downloadpostgresql-b11f0d36b224a9673863b4e592f40f179dba3016.tar.gz
postgresql-b11f0d36b224a9673863b4e592f40f179dba3016.zip
Improve pg_regress's error reporting for schedule-file problems.
The previous coding here trashed the line buffer as it scanned it, making it impossible to print the source line in subsequent error messages. With a few save/restore/strdup pushups we can improve that situation. In passing, move the free'ing of the various strings that are collected while processing one set of tests down to the bottom of the loop. That's simpler, less surprising, and should make valgrind less unhappy about the strings that were previously leaked by the last iteration.
Diffstat (limited to 'src/tools/git-external-diff')
0 files changed, 0 insertions, 0 deletions