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

Commit10b374a

Browse files
committed
Fix bug in pg_convert() per report from MaC.Yui.
It pfree() wrong pointer.
1 parentd35dc34 commit10b374a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/mb/mbutils.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* client encoding and server internal encoding.
44
* (currently mule internal code (mic) is used)
55
* Tatsuo Ishii
6-
* $Id: mbutils.c,v 1.31 2002/08/14 05:33:34 ishii Exp $
6+
* $Id: mbutils.c,v 1.32 2002/08/19 04:08:08 ishii Exp $
77
*/
88
#include"postgres.h"
99
#include"access/xact.h"
@@ -211,7 +211,7 @@ pg_convert(PG_FUNCTION_ARGS)
211211
pg_convert2,string,src_encoding_name,dest_encoding_name);
212212

213213
/* free memory allocated by namein */
214-
pfree((void*)dest_encoding_name);
214+
pfree((void*)src_encoding_name);
215215

216216
PG_RETURN_TEXT_P(result);
217217
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp