8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad0c98 commit fdb4d41Copy full SHA for fdb4d41
src/multimaster.c
@@ -366,7 +366,7 @@ MtmDeserializeTransactionState(void *ctx)
366
static void *
367
MtmSuspendTransaction(void)
368
{
369
- MtmCurrentTrans *ctx = malloc(sizeof(MtmCurrentTrans));
+ MtmCurrentTrans *ctx = MemoryContextAlloc(CurTransactionContext, sizeof(MtmCurrentTrans));
370
371
*ctx = MtmTx;
372
return ctx;
@@ -376,7 +376,7 @@ static void
376
MtmResumeTransaction(void *ctx)
377
378
MtmTx = *(MtmCurrentTrans *) ctx;
379
- free(ctx);
+ pfree(ctx);
380
}
381
#endif
382
0 commit comments