Thu Feb 11 11:36:10 PST 2010
- Previous message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slon In directory main.slony.info:/tmp/cvs-serv16556 Modified Files: remote_worker.c Log Message: Memory leak changes (as made in 2.0) per Ulrich Weber, changed for 2.0/HEAD http://lists.slony.info/pipermail/slony1-hackers/2010-January/000292.html Index: remote_worker.c =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/src/slon/remote_worker.c,v retrieving revision 1.183 retrieving revision 1.184 diff -C 2 -d -r1.183 -r1.184 *** remote_worker.c 9 Dec 2009 20:50:25 -0000 1.183 --- remote_worker.c 11 Feb 2010 19:36:08 -0000 1.184 *************** *** 1435,1438 **** --- 1435,1439 ---- rstat = PQresultStatus(res); slon_log(SLON_CONFIG, "DDL success - %s\n", PQresStatus(rstat)); + PQclear(res); } *************** *** 4544,4547 **** --- 4545,4549 ---- { dstring_free(&query); + dstring_free(&query2); pthread_mutex_unlock(&(provider->helper_lock)); pthread_exit(NULL); *************** *** 4951,4954 **** --- 4953,4957 ---- log_cmddata = PQgetvalue(res2, 0, 0); largemem = log_cmdsize; + PQclear(res2); } *************** *** 5035,5039 **** if (largemem > 0) { - PQclear(res2); pthread_mutex_lock(&(wd->workdata_lock)); wd->workdata_largemem += largemem; --- 5038,5041 ----
- Previous message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list