git.postgresql.org Git - postgresql.git/commit
Sat, 7 Oct 2017 22:04:25 +0000 (18:04 -0400)
Sat, 7 Oct 2017 22:04:25 +0000 (18:04 -0400)
commit b11f0d36b224a9673863b4e592f40f179dba3016
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.
This is the main PostgreSQL git repository.
RSS
Atom