Merge pull request #2413 from citusdata/fix_memory_leak_minimal

Fix memory leak in FinishRemoteTransactionPrepare
pull/2410/head
Murat Tuncer 2018-09-28 13:54:07 +03:00 committed by GitHub
commit 0aa9988ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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