From 43b0f2e28a0125c750a968da05325910192e33ff Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 2 Jul 2002 05:49:18 +0000 Subject: [PATCH] The attached patch fixes a minor memory leak in psql. Neil Conway --- src/bin/psql/stringutils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c index a3b44e8bf1..a406c59c8d 100644 --- 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.28 2001/02/27 08:13:27 ishii Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.29 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); } -- 2.40.0