summaryrefslogtreecommitdiff
path: root/src/reverse-proxy.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/reverse-proxy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/reverse-proxy.c b/src/reverse-proxy.c
index efafa74..fdc9098 100644
--- a/src/reverse-proxy.c
+++ b/src/reverse-proxy.c
@@ -92,6 +92,21 @@ struct reversepath *reversepath_get (char *url, struct reversepath *reverse)
return NULL;
}
+/**
+ * Free a reversepath list
+ */
+
+void free_reversepath_list (struct reversepath *reverse)
+{
+ while (reverse) {
+ struct reversepath *tmp = reverse;
+ reverse = reverse->next;
+ safefree (tmp->url);
+ safefree (tmp->path);
+ safefree (tmp);
+ }
+}
+
/*
* Rewrite the URL for reverse proxying.
*/