Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group