pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. 5+ messages / 1 participants [nested] [flat]
* pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. @ 2019-06-07 09:47 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2019-06-07 09:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix copy-pasto in freeing memory on error in vacuumlo. It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/77b68e3a4f854d95350a3366ecfc8b3b506ebaa7 Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. @ 2019-06-07 09:47 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2019-06-07 09:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix copy-pasto in freeing memory on error in vacuumlo. It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2558776b415097610ab69a03604e79d6958608bc Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. @ 2019-06-07 09:47 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2019-06-07 09:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix copy-pasto in freeing memory on error in vacuumlo. It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12a45a20aa25468c56311e71320bb586c2490836 Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. @ 2019-06-07 09:47 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2019-06-07 09:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix copy-pasto in freeing memory on error in vacuumlo. It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/88ca787b16cc5eee79e2e543b2da74ea5b872a85 Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. @ 2019-06-07 09:47 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2019-06-07 09:47 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix copy-pasto in freeing memory on error in vacuumlo. It's harmless to call PQfreemem() with a NULL argument, so the only consequence was that if allocating 'schema' failed, but allocating 'table' or 'field' succeeded, we would leak a bit of memory. That's highly unlikely to happen, so this is just academical, but let's get it right. Per bug #15838 from Timur Birsh. Backpatch back to 9.5, where the PQfreemem() calls were introduced. Discussion: https://www.postgresql.org/message-id/15838-3221652c72c5e69d@postgresql.org Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/99b5ff2eaf4c64c6ac8204f622075d7f01ff4cc2 Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-06-07 09:47 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-06-07 09:47 pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2019-06-07 09:47 pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2019-06-07 09:47 pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2019-06-07 09:47 pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2019-06-07 09:47 pgsql: Fix copy-pasto in freeing memory on error in vacuumlo. Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox