malloc in xlog.c

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: malloc in xlog.c
Date: 2002-12-17 18:30:21
Message-ID: 200212171830.gBHIULG20333@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I see a few malloc's in backend/access/transam/xlog.c that don't check
to see if malloc returns NULL/failure. I think there should be at least
an Assert() in there.

Also, seems we use malloc() a few other places where palloc should be
used, like variable.c. Is that correct?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew Kirkwood 2002-12-17 18:38:11 Re: Suggestion; "WITH VACUUM" option
Previous Message mlw 2002-12-17 18:26:12 Re: Password security question