diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-07-18 04:46:24 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-07-18 04:46:24 +0000 |
commit | 8c26bc5364425041ff3e1a03a2f3ae100f303878 (patch) | |
tree | aa4fac61ebc392892d7052cd75c136c81493f9bc /src/bin/psql/print.c | |
parent | 2c48b3db9543f93ed96b0f2283db31dc3661a279 (diff) | |
download | postgresql-8c26bc5364425041ff3e1a03a2f3ae100f303878.tar.gz postgresql-8c26bc5364425041ff3e1a03a2f3ae100f303878.zip |
The attached patch fixes a tiny memory leak in psql, when using
the 'expanded' output mode (\x).
Neil Conway
Diffstat (limited to 'src/bin/psql/print.c')
-rw-r--r-- | src/bin/psql/print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 92368f9c2d9..a8a0b9af7b0 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.27 2002/07/15 01:56:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.28 2002/07/18 04:46:24 momjian Exp $ */ #include "postgres_fe.h" #include "print.h" @@ -612,6 +612,7 @@ print_aligned_vertical(const char *title, const char *const * headers, #ifdef MULTIBYTE free(cell_w); + free(head_w); #endif } |