OSDN Git Service

Use malloc/palloc as appropriate.
authorBruce Momjian <bruce@momjian.us>
Wed, 15 Aug 2001 23:22:49 +0000 (23:22 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 15 Aug 2001 23:22:49 +0000 (23:22 +0000)
src/backend/libpq/md5.c

index 4412744..846202a 100644 (file)
@@ -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.