v1-0001-Free-memory-allocated-by-waitonlock_error_callbac.patch
text/x-patch
Filename: v1-0001-Free-memory-allocated-by-waitonlock_error_callbac.patch
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v1-0001
Subject: Free memory allocated by waitonlock_error_callback()
| File | + | − |
|---|---|---|
| src/backend/storage/lmgr/lock.c | 2 | 0 |
From e98412e7b1133ece8c7003ee48c598fd27c8763f Mon Sep 17 00:00:00 2001
From: Aleksander Alekseev <aleksander@tigerdata.com>
Date: Fri, 19 Sep 2025 13:06:35 +0300
Subject: [PATCH v1] Free memory allocated by waitonlock_error_callback()
---
src/backend/storage/lmgr/lock.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index 4cc7f645c31..6c347eccc01 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -2030,6 +2030,8 @@ waitonlock_error_callback(void *arg)
errcontext("waiting for %s on %s",
GetLockmodeName(tag->locktag_lockmethodid, mode),
locktagbuf.data);
+
+ pfree(locktagbuf.data);
}
/*
--
2.43.0