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-23 17:59:57
Message-ID: E1QOZQ5-0003OH-Q5@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
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7541d32e86b739afb41e711a4c790aed446dd0e2

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-05-23 18:28:14 pgsql: Message style improvements
Previous Message Tom Lane 2011-05-23 16:53:32 pgsql: Install defenses against overflow in BuildTupleHashTable().