double free in current HEAD's pg_dump

Started by Joachim Wielandalmost 14 years ago2 messages
#1Joachim Wieland
joe@mcknight.de
1 attachment(s)

There's a double free in the current HEAD's pg_dump. Fix attached.

Attachments:

pg_dump.difftext/x-patch; charset=US-ASCII; name=pg_dump.diffDownload
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 2b0a5ff..57a6ccb 100644
*** a/src/bin/pg_dump/pg_dump.c
--- b/src/bin/pg_dump/pg_dump.c
*************** dumpBlobs(Archive *fout, void *arg)
*** 2372,2379 ****
  		PQclear(res);
  	} while (ntups > 0);
  
- 	PQclear(res);
- 
  	return 1;
  }
  
--- 2372,2377 ----
#2Alvaro Herrera
alvherre@commandprompt.com
In reply to: Joachim Wieland (#1)
Re: double free in current HEAD's pg_dump

Excerpts from Joachim Wieland's message of dom mar 18 02:24:21 -0300 2012:

There's a double free in the current HEAD's pg_dump. Fix attached.

Thanks, applied.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support