projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad94d4
)
Fix bug in pg_convert() per report from MaC.Yui.
author
Tatsuo Ishii
<
[email protected]
>
Mon, 19 Aug 2002 04:58:26 +0000
(
04:58
+0000)
committer
Tatsuo Ishii
<
[email protected]
>
Mon, 19 Aug 2002 04:58:26 +0000
(
04:58
+0000)
It pfree() wrong pointer.
src/backend/utils/mb/mbutils.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/mb/mbutils.c
b/src/backend/utils/mb/mbutils.c
index 873f642ec0f5cbe2ab40a66fac2cc4c6227413b0..b368d42a85af5b064d3e5c1b99f9f75ebfedb6de 100644
(file)
--- 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);
}