[Tile-serving] [openstreetmap/osm2pgsql] Make sure PostgreSQL connection is cleaned up properly. (#1011)

Jochen Topf notifications at github.com
Tue Dec 3 14:45:47 UTC 2019


PQfinish(m_conn) must also be called if the connection attempt fails.
(The destructor is not run unless the constructor succeeds.)

Also declares destructor noexcept.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1011

-- Commit Summary --

  * Make sure PostgreSQL connection is cleaned up properly.

-- File Changes --

    M src/pgsql.cpp (3)
    M src/pgsql.hpp (4)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1011.patch
https://github.com/openstreetmap/osm2pgsql/pull/1011.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191203/ced88b44/attachment.html>


More information about the Tile-serving mailing list