Wed Dec 6 01:48:19 PST 2006
- Previous message: [Slony1-commit] By xfade: Fix minor leaks in slon_connectdb and db_get_version.
- Next message: [Slony1-commit] By cbbrowne: Altperl fixes to paths per cedricOB
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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;
}
- Previous message: [Slony1-commit] By xfade: Fix minor leaks in slon_connectdb and db_get_version.
- Next message: [Slony1-commit] By cbbrowne: Altperl fixes to paths per cedricOB
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list