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.
2 parents 0d9e756 + fdb4d41 commit cc1b915Copy full SHA for cc1b915
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