mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Use malloc/palloc as appropriate.
This commit is contained in:
@ -28,6 +28,13 @@ typedef unsigned char unsigned8;
|
||||
typedef unsigned int unsigned32;
|
||||
typedef unsigned long unsigned64;
|
||||
|
||||
#ifdef FRONTEND
|
||||
#undef palloc
|
||||
#define palloc malloc
|
||||
#undef pfree
|
||||
#define pfree free
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The returned array is allocated using malloc. the caller should free it
|
||||
* when it is no longer needed.
|
||||
|
Reference in New Issue
Block a user