CVS User Account cvsuser
Wed Dec 6 01:48:19 PST 2006
Log Message:
-----------
Fix minor leaks in slon_connectdb and db_get_version.

Modified Files:
--------------
    slony1-engine/src/slon:
        dbutils.c (r1.25 -> r1.26)

-------------- next part --------------
Index: dbutils.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/dbutils.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lsrc/slon/dbutils.c -Lsrc/slon/dbutils.c -u -w -r1.25 -r1.26
--- src/slon/dbutils.c
+++ src/slon/dbutils.c
@@ -146,6 +146,7 @@
         	}
 		PQclear(res);
 	}
+	dstring_free(&query);
 	return conn;
 }
 
@@ -528,7 +529,7 @@
 	PQclear(res);
 	snprintf(versionstr, 7, "%.2d%.2d%.2d", major, minor, patch);
 	version=atoi(versionstr);
-
+	dstring_free(&query);
 	return version;
 }
 	



More information about the Slony1-commit mailing list