Why pfree(NULL) breaks execution?

From: Marios Vodas <mvodas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Why pfree(NULL) breaks execution?
Date: 2011-03-04 13:08:31
Message-ID: AANLkTinfnHxkSwD2K=et+dBPsX3OQsEFf4aj1F3VSFoi@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

C doesn't break on free(NULL) so why is pfree developed to break on NULL?
Is there any way in PostgreSQL to overcome this so that it won't break,
apart from checking if the pointer NULL?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-03-04 13:34:18 Re: Open unmatch source file when step into parse_analyze() in Eclipse?
Previous Message hom 2011-03-04 12:55:50 Re: Open unmatch source file when step into parse_analyze() in Eclipse?