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

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:02
Message-ID: E1QMtJK-0002ev-UU@gemulon.postgresql.org (view raw or flat)
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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1f57a2f4dd2f6033e28b0e1f04ef31d5f456793c

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

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2011-05-19 02:50:03
Subject: pgsql: Replace strdup() with pstrdup(), to avoid leaking memory.
Previous:From: Bruce MomjianDate: 2011-05-19 02:23:10
Subject: pgsql: In pg_upgrade,clean up handling of invalid directory specificat

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