]> granicus.if.org Git - postgresql/commitdiff
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 4412744249556ef0130f6af3f7aac8b65030d05c..846202a7b17b6f5e8aa3eaabc07e7cc20bd80de5 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.