projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33f1687
)
The attached patch fixes a minor memory leak in psql.
author
Bruce Momjian
Tue, 2 Jul 2002 05:49:18 +0000
(
05:49
+0000)
committer
Bruce Momjian
Tue, 2 Jul 2002 05:49:18 +0000
(
05:49
+0000)
Neil Conway
src/bin/psql/stringutils.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/stringutils.c
b/src/bin/psql/stringutils.c
index a3b44e8bf175e511a4d2707f58a0272a4a138bf1..a406c59c8d08655ec201895101586b0701b2c97c 100644
(file)
--- a/
src/bin/psql/stringutils.c
+++ b/
src/bin/psql/stringutils.c
@@
-3,7
+3,7
@@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
8 2001/02/27 08:13:27 ishii
Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.2
9 2002/07/02 05:49:18 momjian
Exp $
*/
#include "postgres_fe.h"
#include "stringutils.h"
@@
-195,4
+195,6
@@
unescape_quotes(char *source, int quote, int escape)
*tmp = '\0';
strcpy(source, destination);
+
+ free(destination);
}