Wed Dec 6 01:36:16 PST 2006
- Previous message: [Slony1-commit] By cbbrowne: Fixed some errors in release checklist script
- Next message: [Slony1-commit] By xfade: Fix minor leak in get_earliest_xid.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Fix minor leak in get_earliest_xid.
Modified Files:
--------------
slony1-engine/src/slon:
cleanup_thread.c (r1.34 -> r1.35)
-------------- next part --------------
Index: cleanup_thread.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/cleanup_thread.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -Lsrc/slon/cleanup_thread.c -Lsrc/slon/cleanup_thread.c -u -w -r1.34 -r1.35
--- src/slon/cleanup_thread.c
+++ src/slon/cleanup_thread.c
@@ -414,6 +414,8 @@
}
xid = strtoll(PQgetvalue(res, 0, 0), NULL, 10);
slon_log(SLON_DEBUG3, "cleanupThread: minxid: %d\n", xid);
+ PQclear(res);
+ dstring_free(&query1);
return (unsigned long)xid;
}
- Previous message: [Slony1-commit] By cbbrowne: Fixed some errors in release checklist script
- Next message: [Slony1-commit] By xfade: Fix minor leak in get_earliest_xid.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list