MobilityDB 1.1

◆ 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: c.h:423

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.