diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-31 22:53:59 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-05-31 22:53:59 +0000 |
commit | 2a44383a2d38ac4655e419cb8c2c654efe960285 (patch) | |
tree | 50662e0c6009c7cd08ef0f2fbb04807754c837b4 /src/backend/access/transam/xact.c | |
parent | 81ced1e037f5fede768549e56e7ec8a5c48b7844 (diff) | |
download | postgresql-2a44383a2d38ac4655e419cb8c2c654efe960285.tar.gz postgresql-2a44383a2d38ac4655e419cb8c2c654efe960285.zip |
Clean up memory leaks in LO operations by freeing LO's private
memory context at transaction commit or abort.
Diffstat (limited to 'src/backend/access/transam/xact.c')
-rw-r--r-- | src/backend/access/transam/xact.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 000abbc7ecb..8453d8688c2 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.36 1999/05/25 16:07:50 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.37 1999/05/31 22:53:59 tgl Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -156,8 +156,6 @@ #include <miscadmin.h> #include <commands/async.h> #include <commands/sequence.h> - -/* included for _lo_commit [PA, 7/17/98] */ #include <libpq/be-fsstubs.h> static void AbortTransaction(void); @@ -938,7 +936,7 @@ CommitTransaction() */ /* handle commit for large objects [ PA, 7/17/98 ] */ - _lo_commit(); + lo_commit(true); /* NOTIFY commit must also come before lower-level cleanup */ AtCommit_Notify(); @@ -1012,6 +1010,7 @@ AbortTransaction() * do abort processing * ---------------- */ + lo_commit(false); /* 'false' means it's abort */ UnlockBuffers(); AtAbort_Notify(); CloseSequences(); |