Add free_reversepath_list().

Michael
This commit is contained in:
Michael Adam committed 2009-12-07 00:22:46 +01:00
1 parent 3f1201c8b3
commit 2e6999df4a
2 files changed
+16

No files matched your search

+15
View File
@@ -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.
*/