File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ hashtext(PG_FUNCTION_ARGS)
303303 buf = palloc (bsize );
304304 ucol_getSortKey (mylocale -> info .icu .ucol ,
305305 uchar , ulen , buf , bsize );
306+ pfree (uchar );
306307
307308 result = hash_any (buf , bsize );
308309
@@ -360,6 +361,7 @@ hashtextextended(PG_FUNCTION_ARGS)
360361 buf = palloc (bsize );
361362 ucol_getSortKey (mylocale -> info .icu .ucol ,
362363 uchar , ulen , buf , bsize );
364+ pfree (uchar );
363365
364366 result = hash_any_extended (buf , bsize , PG_GETARG_INT64 (1 ));
365367
Original file line number Diff line number Diff line change @@ -1031,6 +1031,7 @@ hashbpchar(PG_FUNCTION_ARGS)
10311031 buf = palloc (bsize );
10321032 ucol_getSortKey (mylocale -> info .icu .ucol ,
10331033 uchar , ulen , buf , bsize );
1034+ pfree (uchar );
10341035
10351036 result = hash_any (buf , bsize );
10361037
@@ -1092,6 +1093,7 @@ hashbpcharextended(PG_FUNCTION_ARGS)
10921093 buf = palloc (bsize );
10931094 ucol_getSortKey (mylocale -> info .icu .ucol ,
10941095 uchar , ulen , buf , bsize );
1096+ pfree (uchar );
10951097
10961098 result = hash_any_extended (buf , bsize , PG_GETARG_INT64 (1 ));
10971099
You can’t perform that action at this time.
0 commit comments