Jan Wieck wieck at lists.slony.info
Fri Apr 30 16:21:02 PDT 2010
Update of /home/cvsd/slony1/slony1-engine/src/slon
In directory main.slony.info:/tmp/cvs-serv10536

Modified Files:
      Tag: REL_1_2_STABLE
	remote_worker.c 
Log Message:
Backpatching two memory leaks that had been discovered while
fixing the large value dangling pointer issue reported on the
mailing lists.

Jan


Index: remote_worker.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slon/remote_worker.c,v
retrieving revision 1.124.2.43
retrieving revision 1.124.2.44
diff -C 2 -d -r1.124.2.43 -r1.124.2.44
*** remote_worker.c	31 Mar 2010 13:22:20 -0000	1.124.2.43
--- remote_worker.c	30 Apr 2010 23:20:59 -0000	1.124.2.44
***************
*** 5318,5322 ****
--- 5318,5326 ----
  					if (log_tableid >= wd->tab_fqname_size ||
  							wd->tab_fqname[log_tableid] == NULL)
+ 					{
+ 						if (largemem > 0)
+ 							PQclear(res2);
  						continue;
+ 					}
  
  					/*
***************
*** 5373,5377 ****
--- 5377,5386 ----
  					{
  						if (data_line_last >= data_line_alloc)
+ 						{
+ 							if (largemem > 0)
+ 								PQclear(res2);
  							break;
+ 						}
+ 
  						line_no = data_line_last++;
  



More information about the Slony1-commit mailing list