diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2020-11-17 02:14:15 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-12-18 18:56:32 +0100 |
commit | 1ab014ddf72dd09b2ef30320b8b2936a26923b3a (patch) | |
tree | 3a197aef801af039200aa86250ebc50cb85fec0a /solenv | |
parent | ee601c71908dc05fb0f3bd6c4916041d889e96e2 (diff) |
pgsql-sdbc: use libpq's custom free()...
... for stuff allocated by libpq
Their documentation says this is important on Microsoft Windows:
It is particularly important that this function, rather than free(),
be used on Microsoft Windows. This is because allocating memory in a
DLL and releasing it in the application works only if
multithreaded/single-threaded, release/debug, and static/dynamic
flags are the same for the DLL and the application.
Also use const unique_ptr since we don't need the value to survive the
scope in any way.
Change-Id: If4637ea0cd1c05125d63e2f3d37dbeaf716973f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105967
Tested-by: Lionel Mamane <lionel@mamane.lu>
Reviewed-by: Lionel Mamane <lionel@mamane.lu>
(cherry picked from commit 177792660697f85763b39f455d7ebff0f83084fd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107906
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'solenv')
0 files changed, 0 insertions, 0 deletions