libpq: Add pqReleaseConnHosts function
commit53747f722228d2cd4d7054c4d509b27dc89306ae
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 4 Feb 2024 15:19:20 +0000 (4 16:19 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sun, 4 Feb 2024 15:19:20 +0000 (4 16:19 +0100)
treefd979a09b056772ff53f42aea797521d6e901df1
parentc717525035d36e10d27ca045887bbfcc57e98e9e
libpq: Add pqReleaseConnHosts function

In a follow up commit we'll need to free this connhost field in a
function defined in fe-cancel.c, so here we extract the logic to a
dedicated extern function.

Author: Jelte Fennema-Nio <jelte.fennema@microsoft.com>
Discussion: https://postgr.es/m/AM5PR83MB0178D3B31CA1B6EC4A8ECC42F7529@AM5PR83MB0178.EURPRD83.prod.outlook.com
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-int.h