Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43b0f2e

Browse files
committed
The attached patch fixes a minor memory leak in psql.
Neil Conway
1 parent33f1687 commit43b0f2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/bin/psql/stringutils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.28 2001/02/27 08:13:27 ishii Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/stringutils.c,v 1.29 2002/07/02 05:49:18 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"stringutils.h"
@@ -195,4 +195,6 @@ unescape_quotes(char *source, int quote, int escape)
195195
*tmp='\0';
196196

197197
strcpy(source,destination);
198+
199+
free(destination);
198200
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp