OSDN Git Service
(root)
/
pg-rex
/
syncrep.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
<bruce@momjian.us>
Tue, 2 Jul 2002 05:49:18 +0000
(
05:49
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 2 Jul 2002 05:49:18 +0000
(
05:49
+0000)
Neil Conway
src/bin/psql/stringutils.c
patch
|
blob
|
history
diff --git
a/src/bin/psql/stringutils.c
b/src/bin/psql/stringutils.c
index
a3b44e8
..
a406c59
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);
}