Skip to content

Commit 368e87e

Browse files
committed
Use malloc/palloc as appropriate.
1 parent d4fb1b2 commit 368e87e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/backend/libpq/md5.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ typedef unsigned char unsigned8;
2828
typedef unsigned int unsigned32;
2929
typedef unsigned long unsigned64;
3030

31+
#ifdef FRONTEND
32+
#undef palloc
33+
#define palloc malloc
34+
#undef pfree
35+
#define pfree free
36+
#endif
37+
3138
/*
3239
* The returned array is allocated using malloc. the caller should free it
3340
* when it is no longer needed.

0 commit comments

Comments
 (0)