Don't call PQclear until the struct is really no longer going to be used.
authorAlvaro Herrera
Sun, 28 May 2006 17:23:29 +0000 (17:23 +0000)
committerAlvaro Herrera
Sun, 28 May 2006 17:23:29 +0000 (17:23 +0000)
commit117d73a9e7af61f6742e3d2b46f1dfbe3e02b9ca
treef2a5179957d63d898ade09424c91e51f273f9fa7
parent7a6676d9df6e89d6ecdfacd8b377a881dc0e237d
Don't call PQclear until the struct is really no longer going to be used.
Per Coverity bug #304.  Thanks to Martijn van Oosterhout for reporting it.

Zero out the pointer fields of PGresult so that these mistakes are more
easily catched, per discussion.
src/bin/pg_dump/pg_dump.c
src/interfaces/libpq/fe-exec.c