[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] Changes to ccvs/src/root.c
From: |
Derek Robert Price |
Subject: |
[Cvs-cvs] Changes to ccvs/src/root.c |
Date: |
Sun, 04 Sep 2005 01:16:01 -0400 |
Index: ccvs/src/root.c
diff -u ccvs/src/root.c:1.117 ccvs/src/root.c:1.118
--- ccvs/src/root.c:1.117 Sun Sep 4 02:38:06 2005
+++ ccvs/src/root.c Sun Sep 4 05:16:00 2005
@@ -380,6 +380,7 @@
newroot = xmalloc(sizeof(cvsroot_t));
newroot->original = NULL;
+ newroot->directory = NULL;
newroot->method = null_method;
newroot->isremote = false;
#ifdef CLIENT_SUPPORT
@@ -389,7 +390,6 @@
newroot->cvs_rsh = NULL;
newroot->cvs_server = NULL;
newroot->port = 0;
- newroot->directory = NULL;
newroot->proxy_hostname = NULL;
newroot->proxy_port = 0;
newroot->redirect = true; /* Advertise Redirect support */
@@ -400,10 +400,13 @@
-/* Dispose of a cvsroot_t and its component parts */
-void
+/* Dispose of a cvsroot_t and its component parts. Most code should not need
+ * to call this function, as parse_cvsroot is now caching parsed roots.
+ */
+static void
free_cvsroot_t (cvsroot_t *root)
{
+ assert (root);
if (root->original != NULL)
free (root->original);
if (root->directory != NULL)