pgsql: Replace strdup() with pstrdup(), to avoid leaking memory.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Replace strdup() with pstrdup(), to avoid leaking memory.
Date: 2011-05-19 02:50:03
Message-ID: E1QMtJL-0002et-2H@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Replace strdup() with pstrdup(), to avoid leaking memory.

It's been like this since the seg module was introduced, so backpatch to
8.2 which is the oldest supported version.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4919a20c3331dbecd170387b58075210d6245f51

Modified Files
--------------
contrib/seg/seg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2011-05-19 04:08:42 pgsql: Fix declaration of $_TD in "strict" trigger functions
Previous Message Heikki Linnakangas 2011-05-19 02:50:02 pgsql: Replace strdup() with pstrdup(), to avoid leaking memory.