projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d35dc34
)
Fix bug in pg_convert() per report from MaC.Yui.
author
Tatsuo Ishii
<ishii@postgresql.org>
Mon, 19 Aug 2002 04:08:08 +0000
(
04:08
+0000)
committer
Tatsuo Ishii
<ishii@postgresql.org>
Mon, 19 Aug 2002 04:08:08 +0000
(
04:08
+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 661a6ff882d6f3766b5d977e9785531b28a1eb79..4b77dcfa6a1b1ed96d19f711b3034b2df897d7e0 100644
(file)
--- a/
src/backend/utils/mb/mbutils.c
+++ b/
src/backend/utils/mb/mbutils.c
@@
-3,7
+3,7
@@
* client encoding and server internal encoding.
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
- * $Id: mbutils.c,v 1.3
1 2002/08/14 05:33:34
ishii Exp $
+ * $Id: mbutils.c,v 1.3
2 2002/08/19 04:08:08
ishii Exp $
*/
#include "postgres.h"
#include "access/xact.h"
@@
-211,7
+211,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);
}