Skip to content

Commit 68ed84a

Browse files
Aleksander AlekseevCommitfest Bot
authored andcommitted
Free memory allocated by waitonlock_error_callback()
1 parent f0b3573 commit 68ed84a

File tree

1 file changed

+2
-0
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-0
lines changed

src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,6 +2030,8 @@ waitonlock_error_callback(void *arg)
20302030
errcontext("waiting for %s on %s",
20312031
GetLockmodeName(tag->locktag_lockmethodid, mode),
20322032
locktagbuf.data);
2033+
2034+
pfree(locktagbuf.data);
20332035
}
20342036

20352037
/*

0 commit comments

Comments
 (0)