Fix memory leak in FinishRemoteTransactionPrepare

pull/2413/head
Murat Tuncer 2018-09-28 11:13:21 +03:00
parent 6c389497ab
commit 653c7e4ae0
1 changed files with 2 additions and 0 deletions

View File

@ -528,6 +528,8 @@ FinishRemoteTransactionPrepare(struct MultiConnection *connection)
transaction->transactionState = REMOTE_TRANS_PREPARED; transaction->transactionState = REMOTE_TRANS_PREPARED;
} }
PQclear(result);
/* /*
* Try to consume results of PREPARE TRANSACTION command. If we don't * Try to consume results of PREPARE TRANSACTION command. If we don't
* succeed, rollback the transaction. Note that we've not committed on * succeed, rollback the transaction. Note that we've not committed on