Re: unchecked malloc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sibtay Abbas <sibtay(at)gmail(dot)com>
Cc: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: unchecked malloc
Date: 2005-09-28 16:11:14
Message-ID: 7066.1127923874@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sibtay Abbas <sibtay(at)gmail(dot)com> writes:
> in pl_comp.c, plpgsql_build_variable takes a pointer to a PLpgSQL_type
> structure, which is always a malloc'ed instance(since we always use
> plpgsql_build_datatype function).

As of current sources it's palloc'd, and should be released if the
function is ever recompiled, so I see no strong reason to worry.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-09-28 16:13:38 Re: Proposed patch for sequence-renaming problems
Previous Message Bruce Momjian 2005-09-28 16:10:20 Re: [PATCHES] Proposed patch for sequence-renaming problems