MobilityDB 1.3
Loading...
Searching...
No Matches

◆ PG_FREE_IF_COPY_P

#define PG_FREE_IF_COPY_P (   ptrsrc,
  ptrori 
)
Value:
do { \
if ((Pointer) (ptrsrc) != (Pointer) (ptrori)) \
pfree(ptrsrc); \
} while (0)
char * Pointer
Definition: postgres_ext_defs.in.h:6

This macro is based on PG_FREE_IF_COPY, except that it accepts two pointers.

See PG_FREE_IF_COPY comment in src/include/fmgr.h in postgres source code for more details. This macro is the same as POSTGIS_FREE_IF_COPY_P.