From 14524aee56bae2610066f3c2a5aa94d39801b688 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Mon, 19 Aug 2002 04:58:26 +0000 Subject: [PATCH] Fix bug in pg_convert() per report from MaC.Yui. It pfree() wrong pointer. --- src/backend/utils/mb/mbutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index 873f642ec0..b368d42a85 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -222,7 +222,7 @@ pg_convert(PG_FUNCTION_ARGS) pg_convert2, string, src_encoding_name, dest_encoding_name); /* free memory allocated by namein */ - pfree((void *)dest_encoding_name); + pfree((void *)src_encoding_name); PG_RETURN_TEXT_P(result); } -- 2.39.5