diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-05-09 17:49:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-05-09 17:49:42 +0000 |
commit | 68319f9103a161f435de177876d8a60576a9499b (patch) | |
tree | 4a59cd161f61640f4af0c904f3380a9cb9cc48c6 /src | |
parent | b0546a25547f22c44bbaba7bb7f0ef663bb23ffd (diff) |
Fix memory leak in new psql \du code.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/describe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index f7e544bc78f..fcc0b40753d 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.29 2001/05/09 17:29:10 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.30 2001/05/09 17:49:42 momjian Exp $ */ #include "postgres_fe.h" #include "describe.h" @@ -981,6 +981,8 @@ describeUsers (const char *name) "lll", &myopt, pset.queryFout); /* clean up */ + for (i = 0; i < PQntuples(res); i++) + free(cells[i * cols + 2]); free(cells); PQclear(res); |